VoteTypeAccessControlHandler.php in Voting API 8.3
Namespace
Drupal\votingapiFile
src/VoteTypeAccessControlHandler.phpView source
<?php
namespace Drupal\votingapi;
use Drupal\Core\Entity\EntityAccessControlHandler;
use Drupal\Core\Entity\EntityInterface;
use Drupal\Core\Session\AccountInterface;
/**
* Defines the access control handler for the vote type entity type.
*
* @see \Drupal\votingapi\Entity\VoteType
*/
class VoteTypeAccessControlHandler extends EntityAccessControlHandler {
/**
* {@inheritdoc}
*/
protected function checkAccess(EntityInterface $entity, $operation, AccountInterface $account) {
return parent::checkAccess($entity, $operation, $account);
}
}
Classes
Name | Description |
---|---|
VoteTypeAccessControlHandler | Defines the access control handler for the vote type entity type. |