You are here

AccessCheckBase.php in Allowed Languages 2.x

Same filename and directory in other branches
  1. 8 src/Access/AccessCheckBase.php

File

src/Access/AccessCheckBase.php
View source
<?php

namespace Drupal\allowed_languages\Access;

use Drupal\allowed_languages\AllowedLanguagesManagerInterface;
use Drupal\Core\Routing\Access\AccessInterface;

/**
 * Allowed languages access check base class.
 */
abstract class AccessCheckBase implements AccessInterface {

  /**
   * The allowed language manager service.
   *
   * @var \Drupal\allowed_languages\AllowedLanguagesManagerInterface
   */
  protected $allowedLanguagesManager;

  /**
   * AccessCheck constructor.
   */
  public function __construct(AllowedLanguagesManagerInterface $allowed_languages_manager) {
    $this->allowedLanguagesManager = $allowed_languages_manager;
  }

}

Classes

Namesort descending Description
AccessCheckBase Allowed languages access check base class.