function EntityPublishedActionDeriver::isApplicable

Same name and namespace in other branches
  1. 9 core/lib/Drupal/Core/Action/Plugin/Action/Derivative/EntityPublishedActionDeriver.php \Drupal\Core\Action\Plugin\Action\Derivative\EntityPublishedActionDeriver::isApplicable()
  2. 10 core/lib/Drupal/Core/Action/Plugin/Action/Derivative/EntityPublishedActionDeriver.php \Drupal\Core\Action\Plugin\Action\Derivative\EntityPublishedActionDeriver::isApplicable()
  3. 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\Derivative

Code

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.