function ModerationStateWidget::isApplicable
Same name in other branches
- 8.9.x core/modules/content_moderation/src/Plugin/Field/FieldWidget/ModerationStateWidget.php \Drupal\content_moderation\Plugin\Field\FieldWidget\ModerationStateWidget::isApplicable()
- 10 core/modules/content_moderation/src/Plugin/Field/FieldWidget/ModerationStateWidget.php \Drupal\content_moderation\Plugin\Field\FieldWidget\ModerationStateWidget::isApplicable()
- 11.x core/modules/content_moderation/src/Plugin/Field/FieldWidget/ModerationStateWidget.php \Drupal\content_moderation\Plugin\Field\FieldWidget\ModerationStateWidget::isApplicable()
Overrides WidgetBase::isApplicable
1 call to ModerationStateWidget::isApplicable()
- ModerationStateWidgetTest::testIsApplicable in core/
modules/ content_moderation/ tests/ src/ Kernel/ ModerationStateWidgetTest.php - @covers ::isApplicable
File
-
core/
modules/ content_moderation/ src/ Plugin/ Field/ FieldWidget/ ModerationStateWidget.php, line 193
Class
- ModerationStateWidget
- Plugin implementation of the 'moderation_state_default' widget.
Namespace
Drupal\content_moderation\Plugin\Field\FieldWidgetCode
public static function isApplicable(FieldDefinitionInterface $field_definition) {
return is_a($field_definition->getClass(), ModerationStateFieldItemList::class, TRUE);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.