protected function 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\EntityCode
protected function getFieldDefinition($field_name) { $definitions = $this->getFieldDefinitions(); return isset($definitions[$field_name]) ? $definitions[$field_name] : NULL; }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Entity!EntityDisplayBase.php/function/EntityDisplayBase::getFieldDefinition/8.1.x