EntityChangedActionDeriver.php

Same filename in other branches
  1. 9 core/lib/Drupal/Core/Action/Plugin/Action/Derivative/EntityChangedActionDeriver.php
  2. 8.9.x core/lib/Drupal/Core/Action/Plugin/Action/Derivative/EntityChangedActionDeriver.php
  3. 10 core/lib/Drupal/Core/Action/Plugin/Action/Derivative/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.

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.