You are here

public function Library::access in Layout builder library 8

Overrides \Drupal\Core\Access\AccessibleInterface::access().

Overrides SectionStorageInterface::access

File

src/Plugin/SectionStorage/Library.php, line 254

Class

Library
Defines a class for library based layout storage.

Namespace

Drupal\layout_library\Plugin\SectionStorage

Code

public function access($operation, AccountInterface $account = NULL, $return_as_object = FALSE) {
  $result = AccessResult::allowed();
  return $return_as_object ? $result : $result
    ->isAllowed();
}