EntityDisplayInterface::getComponent

public EntityDisplayInterface::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. File core/lib/Drupal/Core/Entity/Display/EntityDisplayInterface.php, line 45 Class EntityDisplayInterface Provides a common interface for entity displays. Namespace Drupal\Core\Entity\Display Code public function getComponent($name);

EntityDisplayInterface::createCopy

public EntityDisplayInterface::createCopy($view_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. File core/lib/Drupal/Core/Entity/Display/EntityDisplayInterface.php, line 25 Class EntityDisplayInterface Provides a commo

EntityDisplayInterface

Provides a common interface for entity displays. Hierarchy interface \Drupal\Core\Config\Entity\ConfigEntityInterface; interface \Drupal\Core\Entity\EntityWithPluginCollectionInterfaceinterface \Drupal\Core\Entity\Display\EntityDisplayInterface File core/lib/Drupal/Core/Entity/Display/EntityDisplayInterface.php, line 11 Namespace Drupal\Core\Entity\Display Members Name Modifiers Type Description AccessibleInterface::access public function Checks data value access. Cac

EntityDisplayFormBase::__construct

public EntityDisplayFormBase::__construct(FieldTypePluginManagerInterface $field_type_manager, PluginManagerBase $plugin_manager) Constructs a new EntityDisplayFormBase. Parameters \Drupal\Core\Field\FieldTypePluginManagerInterface $field_type_manager: The field type manager. \Drupal\Component\Plugin\PluginManagerBase $plugin_manager: The widget or formatter plugin manager. File core/modules/field_ui/src/Form/EntityDisplayFormBase.php, line 59 Class EntityDisplayFormBase Base class for En

EntityDisplayFormBase::thirdPartySettingsForm

abstract protected EntityDisplayFormBase::thirdPartySettingsForm(PluginSettingsInterface $plugin, FieldDefinitionInterface $field_definition, array $form, FormStateInterface $form_state) Adds the widget or formatter third party settings forms. Parameters \Drupal\Core\Field\PluginSettingsInterface $plugin: The widget or formatter. \Drupal\Core\Field\FieldDefinitionInterface $field_definition: The field definition. array $form: The (entire) configuration form array. \Drupal\Core\Form\FormStateIn

EntityDisplayFormBase::tablePreRender

public EntityDisplayFormBase::tablePreRender($elements) Performs pre-render tasks on field_ui_table elements. Parameters array $elements: A structured array containing two sub-levels of elements. Properties used: #tabledrag: The value is a list of $options arrays that are passed to drupal_attach_tabledrag(). The HTML ID of the table is added to each $options array. Return value array Deprecated in Drupal 8.0.0, will be removed before Drupal 9.0.0. See also drupal_render() \Drupal\Core\

EntityDisplayFormBase::submitForm

public EntityDisplayFormBase::submitForm(array &$form, FormStateInterface $form_state) This is the default entity object builder function. It is called before any other submit handler to build the new entity object to be used by the following submit handlers. At this point of the form workflow the entity is validated and the form state can be updated, this way the subsequently invoked handlers can retrieve a regular entity object to act on. Generally this method should not be overridden un

EntityDisplayFormBase::saveDisplayStatuses

protected EntityDisplayFormBase::saveDisplayStatuses($display_statuses) Saves the updated display mode statuses. Parameters array $display_statuses: An array holding updated form or view mode statuses. File core/modules/field_ui/src/Form/EntityDisplayFormBase.php, line 876 Class EntityDisplayFormBase Base class for EntityDisplay edit forms. Namespace Drupal\field_ui\Form Code protected function saveDisplayStatuses($display_statuses) { $displays = $this->getDisplays(); foreach (

EntityDisplayFormBase::reduceOrder

public EntityDisplayFormBase::reduceOrder($array, $a) Determines the rendering order of an array representing a tree. Callback for array_reduce() within \Drupal\field_ui\Form\EntityDisplayFormBase::tablePreRender(). Deprecated in Drupal 8.0.0, will be removed before Drupal 9.0.0. File core/modules/field_ui/src/Form/EntityDisplayFormBase.php, line 700 Class EntityDisplayFormBase Base class for EntityDisplay edit forms. Namespace Drupal\field_ui\Form Code public function reduceOrder($

EntityDisplayFormBase::multistepSubmit

public EntityDisplayFormBase::multistepSubmit($form, FormStateInterface $form_state) Form submission handler for multistep buttons. File core/modules/field_ui/src/Form/EntityDisplayFormBase.php, line 594 Class EntityDisplayFormBase Base class for EntityDisplay edit forms. Namespace Drupal\field_ui\Form Code public function multistepSubmit($form, FormStateInterface $form_state) { $trigger = $form_state->getTriggeringElement(); $op = $trigger['#op']; switch ($op) { case 'ed