You are here

public function ContentTranslationAccessCheck::__construct in Allowed Languages 2.x

Same name and namespace in other branches
  1. 8 src/Access/ContentTranslationAccessCheck.php \Drupal\allowed_languages\Access\ContentTranslationAccessCheck::__construct()

AccessCheck constructor.

Parameters

\Drupal\allowed_languages\AllowedLanguagesManagerInterface $allowed_languages_manager: The allowed language manager service.

\Drupal\Core\Language\LanguageManagerInterface $language_manager: Drupal language manager.

Overrides AccessCheckBase::__construct

File

src/Access/ContentTranslationAccessCheck.php, line 33

Class

ContentTranslationAccessCheck
Allowed languages content translation access check.

Namespace

Drupal\allowed_languages\Access

Code

public function __construct(AllowedLanguagesManagerInterface $allowed_languages_manager, LanguageManagerInterface $language_manager) {
  parent::__construct($allowed_languages_manager);
  $this->languageManager = $language_manager;
}