function NavigationSectionStorage::access
Overrides \Drupal\Core\Access\AccessibleInterface::access().
Overrides SectionStorageInterface::access
File
- 
              core/
modules/ navigation/ src/ Plugin/ SectionStorage/ NavigationSectionStorage.php, line 189  
Class
- NavigationSectionStorage
 - Provides navigation section storage.
 
Namespace
Drupal\navigation\Plugin\SectionStorageCode
public function access($operation, ?AccountInterface $account = NULL, $return_as_object = FALSE) : AccessResultInterface|bool {
  $result = AccessResult::allowedIfHasPermission($account, 'configure navigation layout');
  return $return_as_object ? $result : $result->isAllowed();
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.