You are here

VoteTypeAccessControlHandler.php in Voting API 8.3

Namespace

Drupal\votingapi

File

src/VoteTypeAccessControlHandler.php
View 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

Namesort descending Description
VoteTypeAccessControlHandler Defines the access control handler for the vote type entity type.