You are here

public function FormWidgetInterface::getConfigurationDefinitions in Typed Data API enhancements 8

Defines the supported configuration settings.

If the widget is configurable, this method must define the supported setting values. The definitions may include suiting widgets and widget configurations for generating a configuration form.

Parameters

\Drupal\Core\TypedData\DataDefinitionInterface $definition: The definition of the edited data.

Return value

\Drupal\typed_data\Context\ContextDefinitionInterface[] An array of context definitions describing the configuration values, keyed by configuration setting name. The keys must match the actual keys of the supported configuration.

6 methods override FormWidgetInterface::getConfigurationDefinitions()
BrokenWidget::getConfigurationDefinitions in src/Plugin/TypedDataFormWidget/BrokenWidget.php
Defines the supported configuration settings.
DatetimeRangeWidget::getConfigurationDefinitions in src/Plugin/TypedDataFormWidget/DatetimeRangeWidget.php
Defines the supported configuration settings.
DatetimeWidget::getConfigurationDefinitions in src/Plugin/TypedDataFormWidget/DatetimeWidget.php
Defines the supported configuration settings.
SelectWidget::getConfigurationDefinitions in src/Plugin/TypedDataFormWidget/SelectWidget.php
Defines the supported configuration settings.
TextareaWidget::getConfigurationDefinitions in src/Plugin/TypedDataFormWidget/TextareaWidget.php
Defines the supported configuration settings.

... See full list

File

src/Widget/FormWidgetInterface.php, line 94

Class

FormWidgetInterface
Interface definition for form widget plugins.

Namespace

Drupal\typed_data\Widget

Code

public function getConfigurationDefinitions(DataDefinitionInterface $definition);