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\Config
Code
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); }
Please login to continue.