public function PageManagerSectionStorage::access in Page Manager 8.4
Overrides \Drupal\Core\Access\AccessibleInterface::access().
Overrides SectionStorageInterface::access
File
- src/
Plugin/ SectionStorage/ PageManagerSectionStorage.php, line 206
Class
- PageManagerSectionStorage
- Defines the 'page_manager' section storage type.
Namespace
Drupal\page_manager\Plugin\SectionStorageCode
public function access($operation, AccountInterface $account = NULL, $return_as_object = FALSE) {
$result = AccessResult::allowedIf($this
->isLayoutBuilderEnabled())
->addCacheableDependency($this);
return $return_as_object ? $result : $result
->isAllowed();
}