You are here

public function SettingsForm::access in Lightning Layout 8.2

Same name and namespace in other branches
  1. 8 src/Form/SettingsForm.php \Drupal\lightning_layout\Form\SettingsForm::access()

Allows access if the Entity Block deriver is available.

Return value

\Drupal\Core\Access\AccessResult Whether access is allowed.

1 string reference to 'SettingsForm::access'
lightning_layout.routing.yml in ./lightning_layout.routing.yml
lightning_layout.routing.yml

File

src/Form/SettingsForm.php, line 105

Class

SettingsForm
The settings form for controlling Lightning Layout's behavior.

Namespace

Drupal\lightning_layout\Form

Code

public function access() {
  return AccessResult::allowedIf((bool) $this->deriver);
}