You are here

protected function EnvironmentIndicatorAccessController::checkCreateAccess in Environment Indicator 8.2

File

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

Class

EnvironmentIndicatorAccessController
Defines an access controller for the environment entity.

Namespace

Drupal\environment_indicator

Code

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