You are here

protected function EntityChangedActionDeriver::isApplicable in Drupal 9

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/Action/Plugin/Action/Derivative/EntityChangedActionDeriver.php \Drupal\Core\Action\Plugin\Action\Derivative\EntityChangedActionDeriver::isApplicable()

Indicates whether the deriver can be used for the provided entity type.

Parameters

\Drupal\Core\Entity\EntityTypeInterface $entity_type: The entity type.

Return value

bool TRUE if the entity type can be used, FALSE otherwise.

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);
}