You are here

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

LayoutBuilderLock

Namespace

Drupal\layout_builder_lock

Code

protected static function hasBypassLockSettingsPermission() {
  return \Drupal::currentUser()
    ->hasPermission('bypass lock settings on layout overrides');
}