Pathologic was missing because of a .git folder inside.
[yaffs-website] / web / modules / contrib / fontyourface / src / FontDisplayAccessControlHandler.php
1 <?php
2
3 namespace Drupal\fontyourface;
4
5 use Drupal\Core\Entity\EntityAccessControlHandler;
6 use Drupal\Core\Entity\EntityInterface;
7 use Drupal\Core\Session\AccountInterface;
8 use Drupal\Core\Access\AccessResult;
9
10 /**
11  * Access controller for the Font display entity.
12  *
13  * @see \Drupal\fontyourface\Entity\FontDisplay.
14  */
15 class FontDisplayAccessControlHandler extends EntityAccessControlHandler {
16
17   /**
18    * {@inheritdoc}
19    */
20   protected function checkAccess(EntityInterface $entity, $operation, AccountInterface $account) {
21     return AccessResult::allowedIfHasPermission($account, 'administer font entities');
22   }
23
24 }