EntityDisplayModeController::viewModeTypeSelection

public EntityDisplayModeController::viewModeTypeSelection() Provides a list of eligible entity types for adding view modes. Return value array A list of entity types to add a view mode for. File core/modules/field_ui/src/Controller/EntityDisplayModeController.php, line 19 Class EntityDisplayModeController Provides methods for entity display mode routes. Namespace Drupal\field_ui\Controller Code public function viewModeTypeSelection() { $entity_types = array(); foreach ($this->e

EntityDisplayModeController::formModeTypeSelection

public EntityDisplayModeController::formModeTypeSelection() Provides a list of eligible entity types for adding form modes. Return value array A list of entity types to add a form mode for. File core/modules/field_ui/src/Controller/EntityDisplayModeController.php, line 42 Class EntityDisplayModeController Provides methods for entity display mode routes. Namespace Drupal\field_ui\Controller Code public function formModeTypeSelection() { $entity_types = array(); foreach ($this->e

EntityDisplayModeController

Provides methods for entity display mode routes. Hierarchy class \Drupal\Core\Controller\ControllerBase implements ContainerInjectionInterface uses LoggerChannelTrait, LinkGeneratorTrait, RedirectDestinationTrait, UrlGeneratorTrait, StringTranslationTraitclass \Drupal\field_ui\Controller\EntityDisplayModeController File core/modules/field_ui/src/Controller/EntityDisplayModeController.php, line 11 Namespace Drupal\field_ui\Controller Members Name Modifiers Type Description Con

EntityDisplayModeBase::sort

public static EntityDisplayModeBase::sort(ConfigEntityInterface $a, ConfigEntityInterface $b) Helper callback for uasort() to sort configuration entities by weight and label. Overrides ConfigEntityBase::sort File core/lib/Drupal/Core/Entity/EntityDisplayModeBase.php, line 59 Class EntityDisplayModeBase Base class for config entity types with settings for form and view modes. Namespace Drupal\Core\Entity Code public static function sort(ConfigEntityInterface $a, ConfigEntityInterface $b

EntityDisplayModeBase::setTargetType

public EntityDisplayModeBase::setTargetType($target_entity_type) Set the entity type this display mode is used for. Parameters string $target_entity_type: The target entity type for this display mode. Return value $this Overrides EntityDisplayModeInterface::setTargetType File core/lib/Drupal/Core/Entity/EntityDisplayModeBase.php, line 79 Class EntityDisplayModeBase Base class for config entity types with settings for form and view modes. Namespace Drupal\Core\Entity Code public funct

EntityDisplayModeBase::preSave

public EntityDisplayModeBase::preSave(EntityStorageInterface $storage) Acts on an entity before the presave hook is invoked. Used before the entity is saved and before invoking the presave hook. Note that in case of translatable content entities this callback is only fired on their current translation. It is up to the developer to iterate over all translations if needed. This is different from its counterpart in the Field API, FieldItemListInterface::preSave(), which is fired on all field trans

EntityDisplayModeBase::preDelete

public static EntityDisplayModeBase::preDelete(EntityStorageInterface $storage, array $entities) Acts on entities before they are deleted and before hooks are invoked. Used before the entities are deleted and before invoking the delete hook. Parameters \Drupal\Core\Entity\EntityStorageInterface $storage: The entity storage object. \Drupal\Core\Entity\EntityInterface[] $entities: An array of entities. Overrides ConfigEntityBase::preDelete File core/lib/Drupal/Core/Entity/EntityDisplayModeBase.p

EntityDisplayModeBase::getTargetType

public EntityDisplayModeBase::getTargetType() Gets the entity type this display mode is used for. Return value string The entity type name. Overrides EntityDisplayModeInterface::getTargetType File core/lib/Drupal/Core/Entity/EntityDisplayModeBase.php, line 72 Class EntityDisplayModeBase Base class for config entity types with settings for form and view modes. Namespace Drupal\Core\Entity Code public function getTargetType() { return $this->targetEntityType; }

EntityDisplayModeBase::calculateDependencies

public EntityDisplayModeBase::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/EntityDisplayModeBase.php, line 87 Class EntityDisplayModeBase Base class for config entity types with settings for form and view modes. Namespace Drupal\Core\Entity Code public function calculateDependen

EntityDisplayModeBase::$targetEntityType

The entity type this form or view mode is used for. This is not to be confused with EntityDisplayModeBase::$entityType which is inherited from Entity::$entityType. Type: string File core/lib/Drupal/Core/Entity/EntityDisplayModeBase.php, line 35 Class EntityDisplayModeBase Base class for config entity types with settings for form and view modes. Namespace Drupal\Core\Entity Code protected $targetEntityType;