function EntityChangedActionDeriver::isApplicable

Same name and namespace in other branches
  1. 9 core/lib/Drupal/Core/Action/Plugin/Action/Derivative/EntityChangedActionDeriver.php \Drupal\Core\Action\Plugin\Action\Derivative\EntityChangedActionDeriver::isApplicable()
  2. 10 core/lib/Drupal/Core/Action/Plugin/Action/Derivative/EntityChangedActionDeriver.php \Drupal\Core\Action\Plugin\Action\Derivative\EntityChangedActionDeriver::isApplicable()
  3. 11.x core/lib/Drupal/Core/Action/Plugin/Action/Derivative/EntityChangedActionDeriver.php \Drupal\Core\Action\Plugin\Action\Derivative\EntityChangedActionDeriver::isApplicable()

Overrides EntityActionDeriverBase::isApplicable

File

core/lib/Drupal/Core/Action/Plugin/Action/Derivative/EntityChangedActionDeriver.php, line 18

Class

EntityChangedActionDeriver
Provides an action deriver that finds entity types of EntityChangedInterface.

Namespace

Drupal\Core\Action\Plugin\Action\Derivative

Code

protected function isApplicable(EntityTypeInterface $entity_type) {
    return $entity_type->entityClassImplements(EntityChangedInterface::class);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.