You are here

EntityEditActionDeriver.php in Views Bulk Edit 8.2

File

src/Plugin/Action/Derivative/EntityEditActionDeriver.php
View source
<?php

namespace Drupal\views_bulk_edit\Plugin\Action\Derivative;

use Drupal\Core\Action\Plugin\Action\Derivative\EntityActionDeriverBase;
use Drupal\Core\Entity\EntityTypeInterface;
use Drupal\Core\Entity\FieldableEntityInterface;

/**
 * A action deriver.
 */
class EntityEditActionDeriver extends EntityActionDeriverBase {

  /**
   * {@inheritdoc}
   */
  protected function isApplicable(EntityTypeInterface $entity_type) {
    return $entity_type
      ->entityClassImplements(FieldableEntityInterface::class);
  }

}

Classes

Namesort descending Description
EntityEditActionDeriver A action deriver.