You are here

protected function SchedulerAdminForm::setting in Scheduler 8

Same name and namespace in other branches
  1. 2.x src/Form/SchedulerAdminForm.php \Drupal\scheduler\Form\SchedulerAdminForm::setting()

Helper method to access the settings of this module.

Parameters

string $key: The key of the configuration.

Return value

\Drupal\Core\Config\ImmutableConfig The value of the config setting equested.

1 call to SchedulerAdminForm::setting()
SchedulerAdminForm::buildForm in src/Form/SchedulerAdminForm.php
Form constructor.

File

src/Form/SchedulerAdminForm.php, line 145

Class

SchedulerAdminForm
Main administration form for the Scheduler module.

Namespace

Drupal\scheduler\Form

Code

protected function setting($key) {
  return $this->configFactory
    ->get('scheduler.settings')
    ->get($key);
}