You are here

protected function Contact::config in FZ152 8

Retrieves a configuration object.

Parameters

string $name: The config name to retrieve.

Return value

\Drupal\Core\Config\ImmutableConfig The config object.

1 call to Contact::config()
Contact::getForms in modules/contact/src/Plugin/Fz152/Contact.php
Returns a list of form to and confirmation for sending private data.

File

modules/contact/src/Plugin/Fz152/Contact.php, line 77

Class

Contact
Provides an annotated Fz152 plugin to configure contact form.

Namespace

Drupal\fz152_contact\Plugin\Fz152

Code

protected function config($name) {
  if (!isset($this->configFactory)) {
    $this->configFactory = \Drupal::service('config.factory');
  }
  return $this->configFactory
    ->get($name);
}