EntityDisplayBase::getLogger

protected EntityDisplayBase::getLogger() Provides the 'system' channel logger service. Return value \Psr\Log\LoggerInterface The 'system' channel logger. File core/lib/Drupal/Core/Entity/EntityDisplayBase.php, line 544 Class EntityDisplayBase Provides a common base class for entity view and form displays. Namespace Drupal\Core\Entity Code protected function getLogger() { return \Drupal::logger('system'); }

EntityDisplayBase::getHighestWeight

public EntityDisplayBase::getHighestWeight() Gets the highest weight of the components in the display. Return value int|null The highest weight of the components in the display, or NULL if the display is empty. Overrides EntityDisplayInterface::getHighestWeight File core/lib/Drupal/Core/Entity/EntityDisplayBase.php, line 358 Class EntityDisplayBase Provides a common base class for entity view and form displays. Namespace Drupal\Core\Entity Code public function getHighestWeight() { $

EntityDisplayBase::getFieldDefinitions

protected EntityDisplayBase::getFieldDefinitions() Gets the definitions of the fields that are candidate for display. File core/lib/Drupal/Core/Entity/EntityDisplayBase.php, line 385 Class EntityDisplayBase Provides a common base class for entity view and form displays. Namespace Drupal\Core\Entity Code protected function getFieldDefinitions() { if (!isset($this->fieldDefinitions)) { $definitions = \Drupal::entityManager()->getFieldDefinitions($this->targetEntityType, $t

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; }

EntityDisplayBase::getComponents

public EntityDisplayBase::getComponents() Gets the display options for all components. Return value array The array of display options, keyed by component name. Overrides EntityDisplayInterface::getComponents File core/lib/Drupal/Core/Entity/EntityDisplayBase.php, line 308 Class EntityDisplayBase Provides a common base class for entity view and form displays. Namespace Drupal\Core\Entity Code public function getComponents() { return $this->content; }

EntityDisplayBase::getComponent

public EntityDisplayBase::getComponent($name) Gets the display options set for a component. Parameters string $name: The name of the component. Return value array|null The display options for the component, or NULL if the component is not displayed. Overrides EntityDisplayInterface::getComponent File core/lib/Drupal/Core/Entity/EntityDisplayBase.php, line 315 Class EntityDisplayBase Provides a common base class for entity view and form displays. Namespace Drupal\Core\Entity Code publ

EntityDisplayBase::fieldHasDisplayOptions

private EntityDisplayBase::fieldHasDisplayOptions(FieldDefinitionInterface $definition) Determines if a field has options for a given display. Parameters FieldDefinitionInterface $definition: A field definition. Return value array|null File core/lib/Drupal/Core/Entity/EntityDisplayBase.php, line 406 Class EntityDisplayBase Provides a common base class for entity view and form displays. Namespace Drupal\Core\Entity Code private function fieldHasDisplayOptions(FieldDefinitionInterface

EntityDisplayBase::CUSTOM_MODE

The 'mode' for runtime EntityDisplay objects used to render entities with arbitrary display options rather than a configured view mode or form mode. @todo Prevent creation of a mode with this ID https://www.drupal.org/node/2410727 File core/lib/Drupal/Core/Entity/EntityDisplayBase.php, line 22 Class EntityDisplayBase Provides a common base class for entity view and form displays. Namespace Drupal\Core\Entity Code const CUSTOM_MODE = '_custom';

EntityDisplayBase::createCopy

public EntityDisplayBase::createCopy($mode) Creates a duplicate of the entity display object on a different view mode. The new object necessarily has the same $targetEntityType and $bundle properties than the original one. Parameters string $view_mode: The view mode for the new object. Return value static A duplicate of this object with the given view mode. Overrides EntityDisplayInterface::createCopy File core/lib/Drupal/Core/Entity/EntityDisplayBase.php, line 299 Class EntityDisplayBase

EntityDisplayBase::calculateDependencies

public EntityDisplayBase::calculateDependencies() Calculates dependencies and stores them in the dependency property. Return value $this Overrides ConfigEntityBase::calculateDependencies See also \Drupal\Core\Config\Entity\ConfigDependencyManager File core/lib/Drupal/Core/Entity/EntityDisplayBase.php, line 250 Class EntityDisplayBase Provides a common base class for entity view and form displays. Namespace Drupal\Core\Entity Code public function calculateDependencies() { parent::ca