You are here

protected function EntityEditActionDeriver::isApplicable in Views Bulk Edit 8.2

Indicates whether the deriver can be used for the provided entity type.

Parameters

\Drupal\Core\Entity\EntityTypeInterface $entity_type: The entity type.

Return value

bool TRUE if the entity type can be used, FALSE otherwise.

Overrides EntityActionDeriverBase::isApplicable

File

src/Plugin/Action/Derivative/EntityEditActionDeriver.php, line 17

Class

EntityEditActionDeriver
A action deriver.

Namespace

Drupal\views_bulk_edit\Plugin\Action\Derivative

Code

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