function EntityPublishedActionDeriver::isApplicable
Same name in other branches
- 9 core/lib/Drupal/Core/Action/Plugin/Action/Derivative/EntityPublishedActionDeriver.php \Drupal\Core\Action\Plugin\Action\Derivative\EntityPublishedActionDeriver::isApplicable()
- 8.9.x core/lib/Drupal/Core/Action/Plugin/Action/Derivative/EntityPublishedActionDeriver.php \Drupal\Core\Action\Plugin\Action\Derivative\EntityPublishedActionDeriver::isApplicable()
- 11.x core/lib/Drupal/Core/Action/Plugin/Action/Derivative/EntityPublishedActionDeriver.php \Drupal\Core\Action\Plugin\Action\Derivative\EntityPublishedActionDeriver::isApplicable()
Overrides EntityActionDeriverBase::isApplicable
File
-
core/
lib/ Drupal/ Core/ Action/ Plugin/ Action/ Derivative/ EntityPublishedActionDeriver.php, line 19
Class
- EntityPublishedActionDeriver
- Provides an action deriver that finds publishable entity types.
Namespace
Drupal\Core\Action\Plugin\Action\DerivativeCode
protected function isApplicable(EntityTypeInterface $entity_type) {
return $entity_type->entityClassImplements(EntityPublishedInterface::class);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.