EntityDisplayModeListBuilder::createInstance

public static EntityDisplayModeListBuilder::createInstance(ContainerInterface $container, EntityTypeInterface $entity_type) Instantiates a new instance of this entity handler. This is a factory method that returns a new instance of this object. The factory should pass any needed dependencies into the constructor of this object, but not the container itself. Every call to this method must return a new instance of this object; that is, it may not implement a singleton. Parameters \Symfony\Compon

EntityDisplayModeListBuilder::buildRow

public EntityDisplayModeListBuilder::buildRow(EntityInterface $entity) Builds a row for an entity in the entity listing. Parameters \Drupal\Core\Entity\EntityInterface $entity: The entity for this row of the list. Return value array A render array structure of fields for this entity. Overrides EntityListBuilder::buildRow See also \Drupal\Core\Entity\EntityListBuilder::render() File core/modules/field_ui/src/EntityDisplayModeListBuilder.php, line 65 Class EntityDisplayModeListBuilder Def

EntityDisplayModeListBuilder::buildHeader

public EntityDisplayModeListBuilder::buildHeader() Builds the header row for the entity listing. Return value array A render array structure of header strings. Overrides EntityListBuilder::buildHeader See also \Drupal\Core\Entity\EntityListBuilder::render() File core/modules/field_ui/src/EntityDisplayModeListBuilder.php, line 57 Class EntityDisplayModeListBuilder Defines a class to build a listing of view mode entities. Namespace Drupal\field_ui Code public function buildHeader() {

EntityDisplayModeListBuilder::$entityTypes

All entity types. Type: \Drupal\Core\Entity\EntityTypeInterface[] File core/modules/field_ui/src/EntityDisplayModeListBuilder.php, line 24 Class EntityDisplayModeListBuilder Defines a class to build a listing of view mode entities. Namespace Drupal\field_ui Code protected $entityTypes;

EntityDisplayModeListBuilder

Defines a class to build a listing of view mode entities. Hierarchy class \Drupal\Core\Entity\EntityHandlerBase uses DependencySerializationTrait, StringTranslationTraitclass \Drupal\Core\Entity\EntityListBuilder implements EntityHandlerInterface, EntityListBuilderInterfaceclass \Drupal\Core\Config\Entity\ConfigEntityListBuilderclass \Drupal\field_ui\EntityDisplayModeListBuilder See also \Drupal\Core\Entity\Entity\EntityViewMode File core/modules/field_ui/src/EntityDisplayModeListBuilder

EntityDisplayModeInterface::setTargetType

public EntityDisplayModeInterface::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 File core/lib/Drupal/Core/Entity/EntityDisplayModeInterface.php, line 28 Class EntityDisplayModeInterface Provides an interface for entity types that hold form and view mode settings. Namespace Drupal\Core\Entity Code public function setTargetType($target_entity_

EntityDisplayModeInterface::getTargetType

public EntityDisplayModeInterface::getTargetType() Gets the entity type this display mode is used for. Return value string The entity type name. File core/lib/Drupal/Core/Entity/EntityDisplayModeInterface.php, line 18 Class EntityDisplayModeInterface Provides an interface for entity types that hold form and view mode settings. Namespace Drupal\Core\Entity Code public function getTargetType();

EntityDisplayModeInterface

Provides an interface for entity types that hold form and view mode settings. Hierarchy interface \Drupal\Core\Entity\EntityInterface; interface \Drupal\Core\Config\Entity\ThirdPartySettingsInterfaceinterface \Drupal\Core\Config\Entity\ConfigEntityInterfaceinterface \Drupal\Core\Entity\EntityDisplayModeInterface File core/lib/Drupal/Core/Entity/EntityDisplayModeInterface.php, line 10 Namespace Drupal\Core\Entity Members Name Modifiers Type Description AccessibleInterface::ac

EntityDisplayModeFormBase::__construct

public EntityDisplayModeFormBase::__construct(QueryFactory $query_factory, EntityManagerInterface $entity_manager) Constructs a new EntityDisplayModeFormBase. Parameters \Drupal\Core\Entity\Query\QueryFactory $query_factory: The entity query factory. \Drupal\Core\Entity\EntityManagerInterface $entity_manager: The entity manager. File core/modules/field_ui/src/Form/EntityDisplayModeFormBase.php, line 45 Class EntityDisplayModeFormBase Provides the generic base class for entity display mode

EntityDisplayModeFormBase::save

public EntityDisplayModeFormBase::save(array $form, FormStateInterface $form_state) Form submission handler for the 'save' action. Normally this method should be overridden to provide specific messages to the user and redirect the form after the entity has been saved. Parameters array $form: An associative array containing the structure of the form. \Drupal\Core\Form\FormStateInterface $form_state: The current state of the form. Return value int Either SAVED_NEW or SAVED_UPDATED, depending on