function 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\DerivativeCode
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.