protected function SettingsForm::config in External Link Pop-up 8
Retrieves a configuration object.
Parameters
string $name: The name of the configuration object to retrieve. The name corresponds to a configuration file. For
\Drupal::config('book.admin');
, the config object returned will contain the contents of book.admin configuration file.
Return value
\Drupal\Core\Config\Config|\Drupal\Core\Config\ImmutableConfig An editable configuration object if the given name is listed in the getEditableConfigNames() method or an immutable configuration object if not.
Overrides ConfigFormBaseTrait::config
File
- src/
Form/ SettingsForm.php, line 32
Class
- SettingsForm
- Implements the external_link_popup.settings route.
Namespace
Drupal\external_link_popup\FormCode
protected function config($name = NULL) {
return parent::config($name ?: 'external_link_popup.settings');
}