You are here

public function UpdateAccessCheck::access in FullCalendar 8

Same name and namespace in other branches
  1. 8.5 src/Access/UpdateAccessCheck.php \Drupal\fullcalendar\Access\UpdateAccessCheck::access()
  2. 8.2 src/Access/UpdateAccessCheck.php \Drupal\fullcalendar\Access\UpdateAccessCheck::access()
  3. 8.3 src/Access/UpdateAccessCheck.php \Drupal\fullcalendar\Access\UpdateAccessCheck::access()
  4. 8.4 src/Access/UpdateAccessCheck.php \Drupal\fullcalendar\Access\UpdateAccessCheck::access()

File

src/Access/UpdateAccessCheck.php, line 18

Class

UpdateAccessCheck
@todo.

Namespace

Drupal\fullcalendar\Access

Code

public function access(EntityInterface $entity, AccountInterface $account) {
  return AccessResult::allowedIf($entity && $this
    ->check($entity, $account))
    ->cachePerUser();
}