Drupal 8  8.0.2
ConfigInstaller Class Reference
Inheritance diagram for ConfigInstaller:

Public Member Functions

 __construct (\Symfony\Component\DependencyInjection\ContainerInterface $container, $drupal_proxy_original_service_id)
 
 installDefaultConfig ($type, $name)
 
 installOptionalConfig (\Drupal\Core\Config\StorageInterface $storage=NULL, $dependency=array())
 
 installCollectionDefaultConfig ($collection)
 
 setSourceStorage (\Drupal\Core\Config\StorageInterface $storage)
 
 getSourceStorage ()
 
 setSyncing ($status)
 
 isSyncing ()
 
 checkConfigurationToInstall ($type, $name)
 
- Public Member Functions inherited from ConfigInstallerInterface
 installOptionalConfig (StorageInterface $storage=NULL, $dependency=[])
 
 setSourceStorage (StorageInterface $storage)
 

Protected Member Functions

 lazyLoadItself ()
 

Protected Attributes

 $drupalProxyOriginalServiceId
 
 $service
 
 $container
 

Detailed Description

Provides a proxy class for .

See Also

Constructor & Destructor Documentation

__construct ( \Symfony\Component\DependencyInjection\ContainerInterface  $container,
  $drupal_proxy_original_service_id 
)

Constructs a ProxyClass Drupal proxy object.

Parameters
\Symfony\Component\DependencyInjection\ContainerInterface$containerThe container.
string$drupal_proxy_original_service_idThe service ID of the original service.

Member Function Documentation

checkConfigurationToInstall (   $type,
  $name 
)

{Checks the configuration that will be installed for an extension.

Parameters
string$typeType of extension to install.
string$nameName of extension to install.
Exceptions
\Drupal\Core\Config\UnmetDependenciesException
\Drupal\Core\Config\PreExistingConfigException
}

Implements ConfigInstallerInterface.

References ConfigInstaller\lazyLoadItself().

Here is the call graph for this function:

getSourceStorage ( )

{}

References ConfigInstaller\lazyLoadItself().

Here is the call graph for this function:

installCollectionDefaultConfig (   $collection)

{Installs all default configuration in the specified collection.The function is useful if the site needs to respond to an event that has just created another collection and we need to check all the installed extensions for any matching configuration. For example, if a language has just been created.

Parameters
string$collectionThe configuration collection.
}

Implements ConfigInstallerInterface.

References ConfigInstaller\lazyLoadItself().

Here is the call graph for this function:

installDefaultConfig (   $type,
  $name 
)

{Installs the default configuration of a given extension.When an extension is installed, it searches all the default configuration directories for all other extensions to locate any configuration with its name prefix. For example, the Node module provides the frontpage view as a default configuration file: core/modules/node/config/install/views.view.frontpage.yml When the Views module is installed after the Node module is already enabled, the frontpage view will be installed.Additionally, the default configuration directory for the extension being installed is searched to discover if it contains default configuration that is owned by other enabled extensions. So, the frontpage view will also be installed when the Node module is installed after Views.

Parameters
string$typeThe extension type; e.g., 'module' or 'theme'.
string$nameThe name of the module or theme to install default configuration for.
See Also
}

Implements ConfigInstallerInterface.

References ConfigInstaller\lazyLoadItself().

Here is the call graph for this function:

installOptionalConfig ( \Drupal\Core\Config\StorageInterface  $storage = NULL,
  $dependency = array (        ) 
)

{}

References ConfigInstaller\lazyLoadItself().

Here is the call graph for this function:

isSyncing ( )

{Gets the syncing state.

Returns
bool Returns TRUE is syncing flag set.
}

Implements ConfigInstallerInterface.

References ConfigInstaller\lazyLoadItself().

Here is the call graph for this function:

lazyLoadItself ( )
protected

Lazy loads the real service from the container.

Returns
object Returns the constructed real service.

References Drupal\service().

Referenced by ConfigInstaller\checkConfigurationToInstall(), ConfigInstaller\getSourceStorage(), ConfigInstaller\installCollectionDefaultConfig(), ConfigInstaller\installDefaultConfig(), ConfigInstaller\installOptionalConfig(), ConfigInstaller\isSyncing(), ConfigInstaller\setSourceStorage(), and ConfigInstaller\setSyncing().

Here is the call graph for this function:

Here is the caller graph for this function:

setSourceStorage ( \Drupal\Core\Config\StorageInterface  $storage)

{}

References ConfigInstaller\lazyLoadItself().

Here is the call graph for this function:

setSyncing (   $status)

{Sets the status of the isSyncing flag.

Parameters
bool$statusThe status of the sync flag.
Returns
$this
}

Implements ConfigInstallerInterface.

References ConfigInstaller\lazyLoadItself().

Here is the call graph for this function:


The documentation for this class was generated from the following file: