You are here

public function LayoutSectionItemList::defaultAccess in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/layout_builder/src/Field/LayoutSectionItemList.php \Drupal\layout_builder\Field\LayoutSectionItemList::defaultAccess()
  2. 9 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 an 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();
}