private EntityDisplayBase::fieldHasDisplayOptions(FieldDefinitionInterface $definition)
Determines if a field has options for a given display.
FieldDefinitionInterface $definition: A field definition.
array|null
private function fieldHasDisplayOptions(FieldDefinitionInterface $definition) { // The display only cares about fields that specify display options. // Discard base fields that are not rendered through formatters / widgets. return $definition->getDisplayOptions($this->displayContext); }
© 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::fieldHasDisplayOptions/8.1.x