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

Breadcrumb

  1. Drupal Core 11.1.x

EntityChangedActionDeriver.php

Namespace

Drupal\Core\Action\Plugin\Action\Derivative

File

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.

API Navigation

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