You are here

protected function BreakLockDeriver::isApplicable in Content locking (anti-concurrent editing) 8.2

Same name and namespace in other branches
  1. 8 src/Plugin/Action/BreakLockDeriver.php \Drupal\content_lock\Plugin\Action\BreakLockDeriver::isApplicable()
1 call to BreakLockDeriver::isApplicable()
BreakLockDeriver::getApplicableEntityTypes in src/Plugin/Action/BreakLockDeriver.php
Gets a list of applicable entity types.

File

src/Plugin/Action/BreakLockDeriver.php, line 94

Class

BreakLockDeriver
Provides an action deriver that finds content entity types.

Namespace

Drupal\content_lock\Plugin\Action

Code

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