You are here

private function ConfigStorage::getConfig in Checklist API 8

Gets the config object.

Return value

\Drupal\Core\Config\Config Returns the config object.

File

src/Storage/ConfigStorage.php, line 68

Class

ConfigStorage
Provides config-based checklist progress storage.

Namespace

Drupal\checklistapi\Storage

Code

private function getConfig() {
  if (empty($this->config)) {
    $this->config = $this->configFactory
      ->getEditable("checklistapi.progress.{$this->getChecklistId()}");
  }
  return $this->config;
}