You are here

public function PanelsStorageInterface::access in Panels 8.4

Same name and namespace in other branches
  1. 8.3 src/Storage/PanelsStorageInterface.php \Drupal\panels\Storage\PanelsStorageInterface::access()

Checks if the user has access to a Panels display.

Parameters

string $id: The id for the Panels display within this storage plugin.

string $op: The operation to perform (create, read, update, delete, change layout). If the operation is 'change layout', implementing classes should implicitly check the 'update' permission as well.

\Drupal\Core\Session\AccountInterface $account: The user to check access for.

Return value

\Drupal\Core\Access\AccessResultInterface The access result. If there is no such Panels display then deny access.

1 method overrides PanelsStorageInterface::access()
PageManagerPanelsStorage::access in src/Plugin/PanelsStorage/PageManagerPanelsStorage.php
Checks if the user has access to a Panels display.

File

src/Storage/PanelsStorageInterface.php, line 51

Class

PanelsStorageInterface
Interface for storing Panels displays in various ways.

Namespace

Drupal\panels\Storage

Code

public function access($id, $op, AccountInterface $account);