W3cubDocs

/Drupal 8

interface WidgetBaseInterface

Base interface definition for "Field widget" plugins.

This interface details base wrapping methods that most widget implementations will want to directly inherit from Drupal\Core\Field\WidgetBase. See Drupal\Core\Field\WidgetInterface for methods that will more likely be overridden in actual widget implementations.

Hierarchy

File

core/lib/Drupal/Core/Field/WidgetBaseInterface.php, line 16

Namespace

Drupal\Core\Field

Members

Name Modifiers Type Description
PluginInspectionInterface::getPluginDefinition public function Gets the definition of the plugin implementation.
PluginInspectionInterface::getPluginId public function Gets the plugin_id of the plugin instance.
PluginSettingsInterface::defaultSettings public static function Defines the default settings for this plugin.
PluginSettingsInterface::getSetting public function Returns the value of a setting, or its default value if absent.
PluginSettingsInterface::getSettings public function Returns the array of settings, including defaults for missing settings.
PluginSettingsInterface::onDependencyRemoval public function Informs the plugin that some configuration it depends on will be deleted.
PluginSettingsInterface::setSetting public function Sets the value of a setting for the plugin.
PluginSettingsInterface::setSettings public function Sets the settings for the plugin.
ThirdPartySettingsInterface::getThirdPartyProviders public function Gets the list of third parties that store information.
ThirdPartySettingsInterface::getThirdPartySetting public function Gets the value of a third-party setting.
ThirdPartySettingsInterface::getThirdPartySettings public function Gets all third-party settings of a given module.
ThirdPartySettingsInterface::setThirdPartySetting public function Sets the value of a third-party setting.
ThirdPartySettingsInterface::unsetThirdPartySetting public function Unsets a third-party setting.
WidgetBaseInterface::extractFormValues public function Extracts field values from submitted form values.
WidgetBaseInterface::flagErrors public function Reports field-level validation errors against actual form elements.
WidgetBaseInterface::form public function Creates a form element for a field.
WidgetBaseInterface::getWidgetState public static function Retrieves processing information about the widget from $form_state.
WidgetBaseInterface::setWidgetState public static function Stores processing information about the widget in $form_state.

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Field!WidgetBaseInterface.php/interface/WidgetBaseInterface/8.1.x