You are here

class EnvironmentIndicatorAccessController in Environment Indicator 8.2

Defines an access controller for the environment entity.

Hierarchy

Expanded class hierarchy of EnvironmentIndicatorAccessController

See also

\Drupal\environment_indicator\Plugin\Core\Entity\EnvironmentIndicator.

File

lib/Drupal/environment_indicator/EnvironmentIndicatorAccessController.php, line 19
Contains \Drupal\environment_indicator\EnvironmentIndicatorAccessController.

Namespace

Drupal\environment_indicator
View source
class EnvironmentIndicatorAccessController extends EntityAccessController {

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

  /**
   * {@inheritdoc}
   */
  protected function checkCreateAccess(AccountInterface $account, array $context, $entity_bundle = NULL) {
    return user_access('administer environment indicator settings', $account);
  }

}

Members