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