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