public function BreakLock::__construct in Content locking (anti-concurrent editing) 8
Same name and namespace in other branches
- 8.2 src/Plugin/Action/BreakLock.php \Drupal\content_lock\Plugin\Action\BreakLock::__construct()
Constructs a BreakLock object.
Parameters
mixed[] $configuration: A configuration array containing information about the plugin instance.
string $plugin_id: The plugin ID for the plugin instance.
mixed $plugin_definition: The plugin implementation definition.
\Drupal\content_lock\ContentLock\ContentLock $contentLock: Content lock service.
Overrides PluginBase::__construct
File
- src/
Plugin/ Action/ BreakLock.php, line 42
Class
- BreakLock
- Provides an action that can break a lock.
Namespace
Drupal\content_lock\Plugin\ActionCode
public function __construct(array $configuration, $plugin_id, $plugin_definition, ContentLock $contentLock) {
parent::__construct($configuration, $plugin_id, $plugin_definition);
$this->lockService = $contentLock;
}