EntityChangedActionDeriver.php
Same filename in other branches
Namespace
Drupal\Core\Action\Plugin\Action\DerivativeFile
-
core/
lib/ Drupal/ Core/ Action/ Plugin/ Action/ Derivative/ EntityChangedActionDeriver.php
View source
<?php
namespace Drupal\Core\Action\Plugin\Action\Derivative;
use Drupal\Core\Entity\EntityChangedInterface;
use Drupal\Core\Entity\EntityTypeInterface;
/**
* Provides an action deriver that finds entity types of EntityChangedInterface.
*
* @see \Drupal\Core\Action\Plugin\Action\SaveAction
*/
class EntityChangedActionDeriver extends EntityActionDeriverBase {
/**
* {@inheritdoc}
*/
protected function isApplicable(EntityTypeInterface $entity_type) {
return $entity_type->entityClassImplements(EntityChangedInterface::class);
}
}
Classes
Title | Deprecated | Summary |
---|---|---|
EntityChangedActionDeriver | Provides an action deriver that finds entity types of EntityChangedInterface. |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.