EntityDisplayModeBase::$status

Whether or not this form or view mode has custom settings by default. If FALSE, entities displayed in this mode will reuse the 'default' display settings by default (e.g. right after the module exposing the form or view mode is enabled), but administrators can later use the Field UI to apply custom display settings specific to the form or view mode. Type: bool Overrides ConfigEntityBase::$status File core/lib/Drupal/Core/Entity/EntityDisplayModeBase.php, line 47 Class EntityDisplayModeBase

EntityDisplayModeBase::$label

The human-readable name of the form or view mode. Type: string File core/lib/Drupal/Core/Entity/EntityDisplayModeBase.php, line 25 Class EntityDisplayModeBase Base class for config entity types with settings for form and view modes. Namespace Drupal\Core\Entity Code protected $label;

EntityDisplayModeBase::$id

The ID of the form or view mode. Type: string File core/lib/Drupal/Core/Entity/EntityDisplayModeBase.php, line 18 Class EntityDisplayModeBase Base class for config entity types with settings for form and view modes. Namespace Drupal\Core\Entity Code protected $id;

EntityDisplayModeBase::$cache

Whether or not the rendered output of this view mode is cached by default. Type: bool File core/lib/Drupal/Core/Entity/EntityDisplayModeBase.php, line 54 Class EntityDisplayModeBase Base class for config entity types with settings for form and view modes. Namespace Drupal\Core\Entity Code protected $cache = TRUE;

EntityDisplayModeBase

Base class for config entity types with settings for form and view modes. Hierarchy class \Drupal\Core\Entity\Entity implements EntityInterface uses RefinableCacheableDependencyTrait, DependencySerializationTraitclass \Drupal\Core\Config\Entity\ConfigEntityBase implements ConfigEntityInterface uses PluginDependencyTraitclass \Drupal\Core\Entity\EntityDisplayModeBase implements EntityDisplayModeInterface File core/lib/Drupal/Core/Entity/EntityDisplayModeBase.php, line 11 Namespace Drupa

EntityDisplayModeAddForm::validateForm

public EntityDisplayModeAddForm::validateForm(array &$form, FormStateInterface $form_state) Form validation handler. Parameters array $form: An associative array containing the structure of the form. \Drupal\Core\Form\FormStateInterface $form_state: The current state of the form. Overrides FormBase::validateForm File core/modules/field_ui/src/Form/EntityDisplayModeAddForm.php, line 36 Class EntityDisplayModeAddForm Provides the add form for entity display modes. Namespace Drupal\fi

EntityDisplayModeAddForm::prepareEntity

protected EntityDisplayModeAddForm::prepareEntity() Prepares the entity object before the form is built first. Overrides EntityForm::prepareEntity File core/modules/field_ui/src/Form/EntityDisplayModeAddForm.php, line 45 Class EntityDisplayModeAddForm Provides the add form for entity display modes. Namespace Drupal\field_ui\Form Code protected function prepareEntity() { $definition = $this->entityManager->getDefinition($this->targetEntityTypeId); if (!$definition->get('

EntityDisplayModeAddForm::buildForm

public EntityDisplayModeAddForm::buildForm(array $form, FormStateInterface $form_state, $entity_type_id = NULL) Form constructor. 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 array The form structure. Overrides EntityForm::buildForm File core/modules/field_ui/src/Form/EntityDisplayModeAddForm.php, line 23 Class EntityDisplayModeAddForm Provides the add form

EntityDisplayModeAddForm::$targetEntityTypeId

The entity type for which the display mode is being created. Type: string File core/modules/field_ui/src/Form/EntityDisplayModeAddForm.php, line 18 Class EntityDisplayModeAddForm Provides the add form for entity display modes. Namespace Drupal\field_ui\Form Code protected $targetEntityTypeId;

EntityDisplayModeAddForm

Provides the add form for entity display modes. Hierarchy class \Drupal\Core\Form\FormBase implements ContainerInjectionInterface, FormInterface uses DependencySerializationTrait, LoggerChannelTrait, LinkGeneratorTrait, RedirectDestinationTrait, UrlGeneratorTrait, StringTranslationTraitclass \Drupal\Core\Entity\EntityForm implements EntityFormInterfaceclass \Drupal\field_ui\Form\EntityDisplayModeFormBaseclass \Drupal\field_ui\Form\EntityDisplayModeAddForm File core/modules/field_ui/src/Fo