public function SchedulerModerationWidget::__construct in Scheduler content moderation integration 8
Constructs a WidgetBase object.
Parameters
string $plugin_id: The plugin_id for the widget.
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.
Overrides OptionsWidgetBase::__construct
File
- src/
Plugin/ Field/ FieldWidget/ SchedulerModerationWidget.php, line 46
Class
- SchedulerModerationWidget
- Plugin implementation of the 'scheduler moderation' widget.
Namespace
Drupal\scheduler_content_moderation_integration\Plugin\Field\FieldWidgetCode
public function __construct($plugin_id, $plugin_definition, FieldDefinitionInterface $field_definition, array $settings, array $third_party_settings, ModerationInformationInterface $moderation_information) {
parent::__construct($plugin_id, $plugin_definition, $field_definition, $settings, $third_party_settings);
$this->moderationInformation = $moderation_information;
}