public FieldDefinitionInterface::getDisplayOptions($display_context)
Returns the default display options for the field.
If the field's display is configurable, the returned display options act as default values and may be overridden via the respective entity display. Otherwise, the display options will be applied to entity displays as is.
string $display_context: The display context. Either 'view' or 'form'.
array|null The array of display options for the field, or NULL if the field is not displayed. The following key/value pairs may be present:
The defaults of the various display options above get applied by the used entity display.
\Drupal\Core\Entity\Display\EntityDisplayInterface
public function getDisplayOptions($display_context);
© 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!Field!FieldDefinitionInterface.php/function/FieldDefinitionInterface::getDisplayOptions/8.1.x