SectionStorage::$handles_permission_check

Same name in other branches
  1. 9 core/modules/layout_builder/src/Annotation/SectionStorage.php \Drupal\layout_builder\Annotation\SectionStorage::handles_permission_check
  2. 10 core/modules/layout_builder/src/Annotation/SectionStorage.php \Drupal\layout_builder\Annotation\SectionStorage::handles_permission_check
  3. 11.x core/modules/layout_builder/src/Annotation/SectionStorage.php \Drupal\layout_builder\Annotation\SectionStorage::handles_permission_check

Indicates that this section storage handles its own permission checking.

If FALSE, the 'configure any layout' permission will be required during routing access. If TRUE, Layout Builder will not enforce any access restrictions for the storage, so the section storage's implementation of access() must perform the access checking itself. Defaults to FALSE.

Type: bool

See also

\Drupal\layout_builder\Access\LayoutBuilderAccessCheck

File

core/modules/layout_builder/src/Annotation/SectionStorage.php, line 61

Class

SectionStorage
Defines a Section Storage type annotation object.

Namespace

Drupal\layout_builder\Annotation

Code

public $handles_permission_check = FALSE;

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.