public function EntityBreakLockForm::__construct in Content locking (anti-concurrent editing) 8
Same name and namespace in other branches
- 8.2 src/Form/EntityBreakLockForm.php \Drupal\content_lock\Form\EntityBreakLockForm::__construct()
EntityBreakLockForm constructor.
Parameters
\Drupal\content_lock\ContentLock\ContentLock $contentLock: Content lock service.
\Symfony\Component\HttpFoundation\RequestStack $requestStack: Request stack service.
\Drupal\Core\Language\LanguageManagerInterface $language_manager: Language manager service.
File
- src/
Form/ EntityBreakLockForm.php, line 53
Class
- EntityBreakLockForm
- Provides a base class for break content lock forms.
Namespace
Drupal\content_lock\FormCode
public function __construct(ContentLock $contentLock, RequestStack $requestStack, LanguageManagerInterface $language_manager) {
$this->lockService = $contentLock;
$this->request = $requestStack
->getCurrentRequest();
$this->languageManager = $language_manager;
}