EntityDisplayBase::getFieldDefinition

protected EntityDisplayBase::getFieldDefinition($field_name)

Gets the field definition of a field.

File

core/lib/Drupal/Core/Entity/EntityDisplayBase.php, line 377

Class

EntityDisplayBase
Provides a common base class for entity view and form displays.

Namespace

Drupal\Core\Entity

Code

protected function getFieldDefinition($field_name) {
  $definitions = $this->getFieldDefinitions();
  return isset($definitions[$field_name]) ? $definitions[$field_name] : NULL;
}
doc_Drupal
2016-10-29 09:05:16
Comments
Leave a Comment

Please login to continue.