You are here

public function ContentLockController::access in Content locking (anti-concurrent editing) 8

Same name and namespace in other branches
  1. 8.2 src/Controller/ContentLockController.php \Drupal\content_lock\Controller\ContentLockController::access()

Custom access checker for the create lock requirements route.

See also

\Drupal\content_lock\Routing\ContentLockRoutes::routes()

File

src/Controller/ContentLockController.php, line 92

Class

ContentLockController
Class ContentLockController.

Namespace

Drupal\content_lock\Controller

Code

public function access(ContentEntityInterface $entity, AccountInterface $account) {
  return $entity
    ->access('update', $account, TRUE);
}