ConfigFactory::createConfigObject
protected function ConfigFactory::createConfigObject
protected ConfigFactory::createConfigObject($name, $immutable)
Creates a configuration object.
Parameters
string $name: Configuration object name.
bool $immutable: Determines whether a mutable or immutable config object is returned.
Return value
\Drupal\Core\Config\Config|\Drupal\Core\Config\ImmutableConfig The configuration object.
File
- core/lib/Drupal/Core/Config/ConfigFactory.php, line 392
Class
- ConfigFactory
- Defines the configuration object factory.
Namespace
Drupal\Core\ConfigCode
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