protected static function LayoutBuilderLock::hasManageLockDefaultPermission in Layout Builder Lock 8
Returns whether the current user can manage lock settings on default.
Return value
bool
1 call to LayoutBuilderLock::hasManageLockDefaultPermission()
- LayoutBuilderLock::preRender in src/
LayoutBuilderLock.php - Applies lock settings to the Layout Builder element.
File
- src/
LayoutBuilderLock.php, line 26
Class
Namespace
Drupal\layout_builder_lockCode
protected static function hasManageLockDefaultPermission() {
return \Drupal::currentUser()
->hasPermission('manage lock settings on sections');
}