You are here

protected function EnvironmentIndicatorAccessController::checkAccess in Environment Indicator 8.2

File

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

Class

EnvironmentIndicatorAccessController
Defines an access controller for the environment entity.

Namespace

Drupal\environment_indicator

Code

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