You are here

public function BreakLockDeriver::__construct in Content locking (anti-concurrent editing) 8

Same name and namespace in other branches
  1. 8.2 src/Plugin/Action/BreakLockDeriver.php \Drupal\content_lock\Plugin\Action\BreakLockDeriver::__construct()

Constructs a new EntityActionDeriverBase object.

Parameters

\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.

\Drupal\Core\StringTranslation\TranslationInterface $string_translation: The string translation service.

File

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

Class

BreakLockDeriver
Provides an action deriver that finds content entity types.

Namespace

Drupal\content_lock\Plugin\Action

Code

public function __construct(EntityTypeManagerInterface $entity_type_manager, TranslationInterface $string_translation) {
  $this->entityTypeManager = $entity_type_manager;
  $this->stringTranslation = $string_translation;
}