public function AllowedLanguagesManager::__construct in Allowed Languages 2.x
AllowedLanguagesManager constructor.
Parameters
\Drupal\Core\Session\AccountProxyInterface $current_user: The current user service.
\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager service.
File
- src/
AllowedLanguagesManager.php, line 41
Class
- AllowedLanguagesManager
- The allowed language manager controls access to content by language.
Namespace
Drupal\allowed_languagesCode
public function __construct(AccountProxyInterface $current_user, EntityTypeManagerInterface $entity_type_manager) {
$this->currentUser = $current_user;
$this->entityTypeManager = $entity_type_manager;
}