You are here

public function ConfigHelper::optional in Lightning Core 8.2

Same name and namespace in other branches
  1. 8.5 src/ConfigHelper.php \Drupal\lightning_core\ConfigHelper::optional()
  2. 8 src/ConfigHelper.php \Drupal\lightning_core\ConfigHelper::optional()
  3. 8.3 src/ConfigHelper.php \Drupal\lightning_core\ConfigHelper::optional()
  4. 8.4 src/ConfigHelper.php \Drupal\lightning_core\ConfigHelper::optional()

Switches to the optional config directory.

Return value

$this The called object, for chaining.

File

src/ConfigHelper.php, line 73

Class

ConfigHelper
A facade to assist with manipulating default config.

Namespace

Drupal\lightning_core

Code

public function optional() {
  $this->directory = self::CONFIG_OPTIONAL_DIRECTORY;
  return $this;
}