class VocabularyAccessController

Defines an access controller for the vocabulary entity.

Hierarchy

Expanded class hierarchy of VocabularyAccessController

See also

\Drupal\taxonomy\Plugin\Core\Entity\Vocabulary.

File

drupal/core/modules/taxonomy/lib/Drupal/taxonomy/VocabularyAccessController.php, line 19
Contains \Drupal\taxonomy\VocabularyAccessController.

Namespace

Drupal\taxonomy
View source
class VocabularyAccessController extends EntityAccessController {

  /**
   * {@inheritdoc}
   */
  protected function checkAccess(EntityInterface $entity, $operation, $langcode, AccountInterface $account) {
    return user_access('administer taxonomy', $account);
  }

}

Members

Namesort descending Modifiers Type Description Overrides
EntityAccessController::$accessCache protected property Stores calculcated access check results.
EntityAccessController::access public function Checks access to an operation on a given entity or entity translation. Overrides EntityAccessControllerInterface::access 1
EntityAccessController::getCache protected function Tries to retrieve a previously cached access value from the static cache.
EntityAccessController::resetCache public function Clears all cached access checks. Overrides EntityAccessControllerInterface::resetCache
EntityAccessController::setCache protected function Statically caches whether the given user has access.
VocabularyAccessController::checkAccess protected function Performs access checks. Overrides EntityAccessController::checkAccess