class FieldLayoutEntityFormDisplayEditForm
Same name in other branches
- 8.9.x core/modules/field_layout/src/Form/FieldLayoutEntityFormDisplayEditForm.php \Drupal\field_layout\Form\FieldLayoutEntityFormDisplayEditForm
- 10 core/modules/field_layout/src/Form/FieldLayoutEntityFormDisplayEditForm.php \Drupal\field_layout\Form\FieldLayoutEntityFormDisplayEditForm
- 11.x core/modules/field_layout/src/Form/FieldLayoutEntityFormDisplayEditForm.php \Drupal\field_layout\Form\FieldLayoutEntityFormDisplayEditForm
Edit form for the EntityFormDisplay entity type.
@internal
Hierarchy
- class \Drupal\Core\Form\FormBase implements \Drupal\Core\Form\FormInterface, \Drupal\Core\DependencyInjection\ContainerInjectionInterface uses \Drupal\Core\DependencyInjection\DependencySerializationTrait, \Drupal\Core\Logger\LoggerChannelTrait, \Drupal\Core\Messenger\MessengerTrait, \Drupal\Core\Routing\RedirectDestinationTrait, \Drupal\Core\StringTranslation\StringTranslationTrait
- class \Drupal\Core\Entity\EntityForm extends \Drupal\Core\Form\FormBase implements \Drupal\Core\Entity\EntityFormInterface
- class \Drupal\field_ui\Form\EntityDisplayFormBase extends \Drupal\Core\Entity\EntityForm
- class \Drupal\field_ui\Form\EntityFormDisplayEditForm extends \Drupal\field_ui\Form\EntityDisplayFormBase
- class \Drupal\field_layout\Form\FieldLayoutEntityFormDisplayEditForm extends \Drupal\field_ui\Form\EntityFormDisplayEditForm uses \Drupal\field_layout\Form\FieldLayoutEntityDisplayFormTrait
- class \Drupal\field_ui\Form\EntityFormDisplayEditForm extends \Drupal\field_ui\Form\EntityDisplayFormBase
- class \Drupal\field_ui\Form\EntityDisplayFormBase extends \Drupal\Core\Entity\EntityForm
- class \Drupal\Core\Entity\EntityForm extends \Drupal\Core\Form\FormBase implements \Drupal\Core\Entity\EntityFormInterface
Expanded class hierarchy of FieldLayoutEntityFormDisplayEditForm
1 file declares its use of FieldLayoutEntityFormDisplayEditForm
- field_layout.module in core/
modules/ field_layout/ field_layout.module - Provides hook implementations for Field Layout.
File
-
core/
modules/ field_layout/ src/ Form/ FieldLayoutEntityFormDisplayEditForm.php, line 18
Namespace
Drupal\field_layout\FormView source
class FieldLayoutEntityFormDisplayEditForm extends EntityFormDisplayEditForm {
use FieldLayoutEntityDisplayFormTrait;
/**
* FieldLayoutEntityFormDisplayEditForm constructor.
*
* @param \Drupal\Core\Field\FieldTypePluginManagerInterface $field_type_manager
* The field type manager.
* @param \Drupal\Component\Plugin\PluginManagerBase $plugin_manager
* The widget plugin manager.
* @param \Drupal\Core\Layout\LayoutPluginManagerInterface $layout_plugin_manager
* The layout plugin manager.
* @param \Drupal\Core\Entity\EntityDisplayRepositoryInterface $entity_display_repository
* The entity display_repository.
* @param \Drupal\Core\Entity\EntityFieldManagerInterface $entity_field_manager
* The entity field manager.
*/
public function __construct(FieldTypePluginManagerInterface $field_type_manager, PluginManagerBase $plugin_manager, LayoutPluginManagerInterface $layout_plugin_manager, EntityDisplayRepositoryInterface $entity_display_repository = NULL, EntityFieldManagerInterface $entity_field_manager = NULL) {
parent::__construct($field_type_manager, $plugin_manager, $entity_display_repository, $entity_field_manager);
$this->layoutPluginManager = $layout_plugin_manager;
}
/**
* {@inheritdoc}
*/
public static function create(ContainerInterface $container) {
return new static($container->get('plugin.manager.field.field_type'), $container->get('plugin.manager.field.widget'), $container->get('plugin.manager.core.layout'), $container->get('entity_display.repository'), $container->get('entity_field.manager'));
}
}
Members
Title Sort descending | Modifiers | Object type | Summary | Overriden Title | Overrides |
---|---|---|---|---|---|
DependencySerializationTrait::$_entityStorages | protected | property | |||
DependencySerializationTrait::$_serviceIds | protected | property | |||
DependencySerializationTrait::__sleep | public | function | 1 | ||
DependencySerializationTrait::__wakeup | public | function | 2 | ||
EntityDisplayFormBase::$entity | protected | property | The entity being used by this form. | Overrides EntityForm::$entity | 1 |
EntityDisplayFormBase::$entityDisplayRepository | protected | property | The entity display repository. | ||
EntityDisplayFormBase::$entityFieldManager | protected | property | The entity field manager. | ||
EntityDisplayFormBase::$fieldTypes | protected | property | A list of field types. | ||
EntityDisplayFormBase::$pluginManager | protected | property | The widget or formatter plugin manager. | ||
EntityDisplayFormBase::buildExtraFieldRow | protected | function | Builds the table row structure for a single extra field. | 1 | |
EntityDisplayFormBase::copyFormValuesToEntity | protected | function | Copies top-level form values to entity properties. | Overrides EntityForm::copyFormValuesToEntity | 1 |
EntityDisplayFormBase::getApplicablePluginOptions | protected | function | Returns an array of applicable widget or formatter options for a field. | ||
EntityDisplayFormBase::getDisplays | protected | function | Returns entity (form) displays for the current entity display type. | ||
EntityDisplayFormBase::getDisplayStatuses | protected | function | Returns form or view modes statuses for the bundle used by this form. | ||
EntityDisplayFormBase::getEntityFromRouteMatch | public | function | Determines which entity will be used by this form from a RouteMatch object. | Overrides EntityForm::getEntityFromRouteMatch | |
EntityDisplayFormBase::getExtraFields | protected | function | Returns the extra fields of the entity type and bundle used by this form. | ||
EntityDisplayFormBase::getFieldDefinitions | protected | function | Collects the definitions of fields whose display is configurable. | ||
EntityDisplayFormBase::getRegionOptions | public | function | Returns an associative array of all regions. | ||
EntityDisplayFormBase::getRowRegion | public | function | Returns the region to which a row in the display overview belongs. | ||
EntityDisplayFormBase::multistepAjax | public | function | Ajax handler for multistep buttons. | ||
EntityDisplayFormBase::multistepSubmit | public | function | Form submission handler for multistep buttons. | ||
EntityDisplayFormBase::saveDisplayStatuses | protected | function | Saves the updated display mode statuses. | ||
EntityForm::$entityTypeManager | protected | property | The entity type manager. | 3 | |
EntityForm::$moduleHandler | protected | property | The module handler service. | ||
EntityForm::$operation | protected | property | The name of the current operation. | ||
EntityForm::actions | protected | function | Returns an array of supported actions for the current entity form. | 35 | |
EntityForm::actionsElement | protected | function | Returns the action form element for the current entity form. | ||
EntityForm::afterBuild | public | function | Form element #after_build callback: Updates the entity with submitted data. | ||
EntityForm::buildEntity | public | function | Builds an updated entity object based upon the submitted form values. | Overrides EntityFormInterface::buildEntity | 3 |
EntityForm::buildForm | public | function | Form constructor. | Overrides FormInterface::buildForm | 13 |
EntityForm::getBaseFormId | public | function | Returns a string identifying the base form. | Overrides BaseFormIdInterface::getBaseFormId | 6 |
EntityForm::getFormId | public | function | Returns a unique string identifying the form. | Overrides FormInterface::getFormId | 12 |
EntityForm::getOperation | public | function | Gets the operation identifying the form. | Overrides EntityFormInterface::getOperation | |
EntityForm::init | protected | function | Initialize the form state and the entity before the first form build. | 3 | |
EntityForm::prepareEntity | protected | function | Prepares the entity object before the form is built first. | 3 | |
EntityForm::prepareInvokeAll | protected | function | Invokes the specified prepare hook variant. | ||
EntityForm::processForm | public | function | Process callback: assigns weights and hides extra fields. | ||
EntityForm::save | public | function | Form submission handler for the 'save' action. | Overrides EntityFormInterface::save | 47 |
EntityForm::setEntity | public | function | Sets the form entity. | Overrides EntityFormInterface::setEntity | |
EntityForm::setEntityTypeManager | public | function | Sets the entity type manager for this form. | Overrides EntityFormInterface::setEntityTypeManager | |
EntityForm::setModuleHandler | public | function | Sets the module handler for this form. | Overrides EntityFormInterface::setModuleHandler | |
EntityForm::setOperation | public | function | Sets the operation for this form. | Overrides EntityFormInterface::setOperation | |
EntityFormDisplayEditForm::$displayContext | protected | property | The display context. Either 'view' or 'form'. | Overrides EntityDisplayFormBase::$displayContext | |
EntityFormDisplayEditForm::alterSettingsSummary | protected | function | Alters the widget or formatter settings summary. | Overrides EntityDisplayFormBase::alterSettingsSummary | |
EntityFormDisplayEditForm::buildFieldRow | protected | function | Builds the table row structure for a single field. | Overrides EntityDisplayFormBase::buildFieldRow | |
EntityFormDisplayEditForm::getDefaultPlugin | protected | function | Returns the ID of the default widget or formatter plugin for a field type. | Overrides EntityDisplayFormBase::getDefaultPlugin | |
EntityFormDisplayEditForm::getDisplayModeOptions | protected | function | Returns an array of form or view mode options. | Overrides EntityDisplayFormBase::getDisplayModeOptions | |
EntityFormDisplayEditForm::getDisplayModes | protected | function | Returns the form or view modes used by this form. | Overrides EntityDisplayFormBase::getDisplayModes | |
EntityFormDisplayEditForm::getDisplayModesLink | protected | function | Returns a link to the form or view mode admin page. | Overrides EntityDisplayFormBase::getDisplayModesLink | |
EntityFormDisplayEditForm::getEntityDisplay | protected | function | Returns an entity display object to be used by this form. | Overrides EntityDisplayFormBase::getEntityDisplay | |
EntityFormDisplayEditForm::getOverviewUrl | protected | function | Returns the Url object for a specific entity (form) display edit form. | Overrides EntityDisplayFormBase::getOverviewUrl | |
EntityFormDisplayEditForm::getTableHeader | protected | function | Returns an array containing the table headers. | Overrides EntityDisplayFormBase::getTableHeader | |
EntityFormDisplayEditForm::thirdPartySettingsForm | protected | function | Adds the widget or formatter third party settings forms. | Overrides EntityDisplayFormBase::thirdPartySettingsForm | |
FieldLayoutEntityDisplayFormTrait::$layoutPluginManager | protected | property | The field layout plugin manager. | ||
FieldLayoutEntityDisplayFormTrait::form | public | function | Overrides \Drupal\field_ui\Form\EntityDisplayFormBase::form(). | ||
FieldLayoutEntityDisplayFormTrait::getEntity | abstract public | function | Gets the form entity. | ||
FieldLayoutEntityDisplayFormTrait::getLayout | protected | function | Gets the layout plugin for the currently selected field layout. | ||
FieldLayoutEntityDisplayFormTrait::getRegions | public | function | Overrides \Drupal\field_ui\Form\EntityDisplayFormBase::getRegions(). | ||
FieldLayoutEntityDisplayFormTrait::settingsAjax | public static | function | Ajax callback for the field layout settings form. | ||
FieldLayoutEntityDisplayFormTrait::settingsAjaxSubmit | public | function | Submit handler for the non-JS case. | ||
FieldLayoutEntityDisplayFormTrait::submitForm | public | function | Overrides \Drupal\field_ui\Form\EntityDisplayFormBase::submitForm(). | ||
FieldLayoutEntityDisplayFormTrait::validateForm | public | function | Overrides \Drupal\field_ui\Form\EntityDisplayFormBase::validateForm(). | ||
FieldLayoutEntityFormDisplayEditForm::create | public static | function | Instantiates a new instance of this class. | Overrides EntityFormDisplayEditForm::create | |
FieldLayoutEntityFormDisplayEditForm::__construct | public | function | FieldLayoutEntityFormDisplayEditForm constructor. | Overrides EntityDisplayFormBase::__construct | |
FormBase::$configFactory | protected | property | The config factory. | 3 | |
FormBase::$requestStack | protected | property | The request stack. | 1 | |
FormBase::$routeMatch | protected | property | The route match. | ||
FormBase::config | protected | function | Retrieves a configuration object. | ||
FormBase::configFactory | protected | function | Gets the config factory for this form. | 3 | |
FormBase::container | private | function | Returns the service container. | ||
FormBase::currentUser | protected | function | Gets the current user. | ||
FormBase::getRequest | protected | function | Gets the request object. | ||
FormBase::getRouteMatch | protected | function | Gets the route match. | ||
FormBase::logger | protected | function | Gets the logger for a specific channel. | ||
FormBase::redirect | protected | function | Returns a redirect response object for the specified route. | ||
FormBase::resetConfigFactory | public | function | Resets the configuration factory. | ||
FormBase::setConfigFactory | public | function | Sets the config factory for this form. | ||
FormBase::setRequestStack | public | function | Sets the request stack object to use. | ||
LoggerChannelTrait::$loggerFactory | protected | property | The logger channel factory service. | ||
LoggerChannelTrait::getLogger | protected | function | Gets the logger for a specific channel. | ||
LoggerChannelTrait::setLoggerFactory | public | function | Injects the logger channel factory. | ||
MessengerTrait::$messenger | protected | property | The messenger. | 17 | |
MessengerTrait::messenger | public | function | Gets the messenger. | 17 | |
MessengerTrait::setMessenger | public | function | Sets the messenger. | ||
RedirectDestinationTrait::$redirectDestination | protected | property | The redirect destination service. | 1 | |
RedirectDestinationTrait::getDestinationArray | protected | function | Prepares a 'destination' URL query parameter for use with \Drupal\Core\Url. | ||
RedirectDestinationTrait::getRedirectDestination | protected | function | Returns the redirect destination service. | ||
RedirectDestinationTrait::setRedirectDestination | public | function | Sets the redirect destination service. | ||
StringTranslationTrait::$stringTranslation | protected | property | The string translation service. | 3 | |
StringTranslationTrait::formatPlural | protected | function | Formats a string containing a count of items. | ||
StringTranslationTrait::getNumberOfPlurals | protected | function | Returns the number of plurals supported by a given language. | ||
StringTranslationTrait::getStringTranslation | protected | function | Gets the string translation service. | ||
StringTranslationTrait::setStringTranslation | public | function | Sets the string translation service to use. | 2 | |
StringTranslationTrait::t | protected | function | Translates a string to the current language or to a given language. |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.