Defines an access controller for the vocabulary entity.
Expanded class hierarchy of VocabularyAccessController
\Drupal\taxonomy\Plugin\Core\Entity\Vocabulary.
class VocabularyAccessController extends EntityAccessController {
/**
* {@inheritdoc}
*/
protected function checkAccess(EntityInterface $entity, $operation, $langcode, AccountInterface $account) {
return user_access('administer taxonomy', $account);
}
}
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
EntityAccessController:: |
protected | property | Stores calculcated access check results. | |
EntityAccessController:: |
public | function |
Checks access to an operation on a given entity or entity translation. Overrides EntityAccessControllerInterface:: |
1 |
EntityAccessController:: |
protected | function | Tries to retrieve a previously cached access value from the static cache. | |
EntityAccessController:: |
public | function |
Clears all cached access checks. Overrides EntityAccessControllerInterface:: |
|
EntityAccessController:: |
protected | function | Statically caches whether the given user has access. | |
VocabularyAccessController:: |
protected | function |
Performs access checks. Overrides EntityAccessController:: |