protected function SchedulerModerationWidget::getEmptyLabel in Scheduler content moderation integration 8
Returns the empty option label to add to the list of options, if any.
Return value
string|null Either a label of the empty option, or NULL.
Overrides OptionsSelectWidget::getEmptyLabel
File
- src/
Plugin/ Field/ FieldWidget/ SchedulerModerationWidget.php, line 83
Class
- SchedulerModerationWidget
- Plugin implementation of the 'scheduler moderation' widget.
Namespace
Drupal\scheduler_content_moderation_integration\Plugin\Field\FieldWidgetCode
protected function getEmptyLabel() {
if ($this->entity && $this->moderationInformation
->isModeratedEntity($this->entity)) {
return '';
}
return parent::getEmptyLabel();
}