public function TimeFieldStandardWidget::__construct in Timefield 1.0.x
Constructs widget plugin.
Parameters
string $plugin_id: The plugin_id for the plugin instance.
mixed $plugin_definition: The plugin implementation definition.
\Drupal\Core\Field\FieldDefinitionInterface $field_definition: The definition of the field to which the widget is associated.
array $settings: The widget settings.
array $third_party_settings: Any third party settings.
\Drupal\Core\Asset\LibraryDiscovery $libraryDiscovery: The library discovery.
\Drupal\Core\Extension\ModuleHandlerInterface|null $module_handler: The module handler.
Overrides WidgetBase::__construct
File
- src/
Plugin/ Field/ FieldWidget/ TimeFieldStandardWidget.php, line 101
Class
- TimeFieldStandardWidget
- Plugin implementation of the 'timefield_standard_widget' widget.
Namespace
Drupal\timefield\Plugin\Field\FieldWidgetCode
public function __construct($plugin_id, $plugin_definition, FieldDefinitionInterface $field_definition, array $settings, array $third_party_settings, LibraryDiscovery $libraryDiscovery, ModuleHandlerInterface $module_handler) {
parent::__construct($plugin_id, $plugin_definition, $field_definition, $settings, $third_party_settings);
$this->libraryDiscovery = $libraryDiscovery;
$this->moduleHandler = $module_handler;
}