You are here

public function SettingTrait::mayEdit in Fasttoggle 8.2

Write access check.

Parameters

mixed $object: The object being modified.

Return value

bool Whether the current user may modify the setting if they can modify the object.

File

src/Plugin/Setting/SettingTrait.php, line 296
Fasttoggle Object List of Values Setting

Class

SettingTrait
Abstract interface for settings.

Namespace

Drupal\fasttoggle\Plugin\Setting

Code

public function mayEdit() {
  return $this
    ->mayEditEntity()
    ->andIf($this
    ->mayEditGroup())
    ->andIf($this
    ->mayEditSetting());
}