You are here

public function LayoutSectionItemList::defaultAccess in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/layout_builder/src/Field/LayoutSectionItemList.php \Drupal\layout_builder\Field\LayoutSectionItemList::defaultAccess()
  2. 10 core/modules/layout_builder/src/Field/LayoutSectionItemList.php \Drupal\layout_builder\Field\LayoutSectionItemList::defaultAccess()

Overrides \Drupal\Core\Field\FieldItemListInterface::defaultAccess().

Overrides FieldItemList::defaultAccess

Related topics

File

core/modules/layout_builder/src/Field/LayoutSectionItemList.php, line 103

Class

LayoutSectionItemList
Defines a item list class for layout section fields.

Namespace

Drupal\layout_builder\Field

Code

public function defaultAccess($operation = 'view', AccountInterface $account = NULL) {

  // @todo Allow access in https://www.drupal.org/node/2942975.
  return AccessResult::forbidden();
}