Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. EntityChangedActionDeriver.php

class EntityChangedActionDeriver

Provides an action deriver that finds entity types of EntityChangedInterface.

Hierarchy

  • class \Drupal\Component\Plugin\Derivative\DeriverBase implements \Drupal\Component\Plugin\Derivative\DeriverInterface
    • class \Drupal\Core\Action\Plugin\Action\Derivative\EntityActionDeriverBase extends \Drupal\Component\Plugin\Derivative\DeriverBase implements \Drupal\Core\Plugin\Discovery\ContainerDeriverInterface uses \Drupal\Core\StringTranslation\StringTranslationTrait
      • class \Drupal\Core\Action\Plugin\Action\Derivative\EntityChangedActionDeriver extends \Drupal\Core\Action\Plugin\Action\Derivative\EntityActionDeriverBase

Expanded class hierarchy of EntityChangedActionDeriver

See also

\Drupal\Core\Action\Plugin\Action\SaveAction

1 file declares its use of EntityChangedActionDeriver
SaveAction.php in core/lib/Drupal/Core/Action/Plugin/Action/SaveAction.php

File

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

Namespace

Drupal\Core\Action\Plugin\Action\Derivative
View source
class EntityChangedActionDeriver extends EntityActionDeriverBase {
    
    /**
     * {@inheritdoc}
     */
    protected function isApplicable(EntityTypeInterface $entity_type) {
        return $entity_type->entityClassImplements(EntityChangedInterface::class);
    }

}

Members

Title Sort descending Modifiers Object type Summary Overriden Title Overrides
DeriverBase::$derivatives protected property List of derivative definitions. 1
DeriverBase::getDerivativeDefinition public function Gets the definition of a derivative plugin. Overrides DeriverInterface::getDerivativeDefinition
EntityActionDeriverBase::$entityTypeManager protected property The entity type manager.
EntityActionDeriverBase::create public static function Creates a new class instance. Overrides ContainerDeriverInterface::create
EntityActionDeriverBase::getApplicableEntityTypes protected function Gets a list of applicable entity types.
EntityActionDeriverBase::getDerivativeDefinitions public function Gets the definition of all derivatives of a base plugin. Overrides DeriverBase::getDerivativeDefinitions 1
EntityActionDeriverBase::__construct public function Constructs a new EntityActionDeriverBase object.
EntityChangedActionDeriver::isApplicable protected function Indicates whether the deriver can be used for the provided entity type. Overrides EntityActionDeriverBase::isApplicable
StringTranslationTrait::$stringTranslation protected property The string translation service.
StringTranslationTrait::formatPlural protected function Formats a string containing a count of items.
StringTranslationTrait::getNumberOfPlurals protected function Returns the number of plurals supported by a given language.
StringTranslationTrait::getStringTranslation protected function Gets the string translation service.
StringTranslationTrait::setStringTranslation public function Sets the string translation service to use.
StringTranslationTrait::t protected function Translates a string to the current language or to a given language.

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal