protected ConfigFactory::createConfigObject($name, $immutable)
Creates a configuration object.
string $name: Configuration object name.
bool $immutable: Determines whether a mutable or immutable config object is returned.
\Drupal\Core\Config\Config|\Drupal\Core\Config\ImmutableConfig The configuration object.
protected function createConfigObject($name, $immutable) { if ($immutable) { return new ImmutableConfig($name, $this->storage, $this->eventDispatcher, $this->typedConfigManager); } return new Config($name, $this->storage, $this->eventDispatcher, $this->typedConfigManager); }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Config!ConfigFactory.php/function/ConfigFactory::createConfigObject/8.1.x