Drupal 8  8.0.2
ConfigMapperManager Class Reference
Inheritance diagram for ConfigMapperManager:

Public Member Functions

 __construct (CacheBackendInterface $cache_backend, LanguageManagerInterface $language_manager, ModuleHandlerInterface $module_handler, TypedConfigManagerInterface $typed_config_manager, ThemeHandlerInterface $theme_handler)
 
 getMappers (RouteCollection $collection=NULL)
 
 processDefinition (&$definition, $plugin_id)
 
 buildDataDefinition (array $definition, $value=NULL, $name=NULL, $parent=NULL)
 
 hasTranslatable ($name)
 
- Public Member Functions inherited from DefaultPluginManager
 __construct ($subdir,\Traversable $namespaces, ModuleHandlerInterface $module_handler, $plugin_interface=NULL, $plugin_definition_annotation_name= 'Drupal\Component\Annotation\Plugin')
 
 setCacheBackend (CacheBackendInterface $cache_backend, $cache_key, array $cache_tags=array())
 
 getDefinitions ()
 
 clearCachedDefinitions ()
 
 useCaches ($use_caches=FALSE)
 
 processDefinition (&$definition, $plugin_id)
 
- Public Member Functions inherited from PluginManagerBase
 getDefinition ($plugin_id, $exception_on_invalid=TRUE)
 
 getDefinitions ()
 
 createInstance ($plugin_id, array $configuration=array())
 
 getInstance (array $options)
 
- Public Member Functions inherited from DiscoveryInterface
 hasDefinition ($plugin_id)
 

Protected Member Functions

 getDiscovery ()
 
 findDefinitions ()
 
 findTranslatable (TypedDataInterface $element)
 
- Protected Member Functions inherited from DefaultPluginManager
 alterInfo ($alter_hook)
 
 getCachedDefinitions ()
 
 setCachedDefinitions ($definitions)
 
 getDiscovery ()
 
 getFactory ()
 
 findDefinitions ()
 
 alterDefinitions (&$definitions)
 
 providerExists ($provider)
 
- Protected Member Functions inherited from PluginManagerBase
 getDiscovery ()
 
 getFactory ()
 

Protected Attributes

 $typedConfigManager
 
 $themeHandler
 
 $defaults
 
- Protected Attributes inherited from DefaultPluginManager
 $cacheKey
 
 $cacheTags = array()
 
 $alterHook
 
 $subdir
 
 $moduleHandler
 
 $defaults = array()
 
 $pluginDefinitionAnnotationName
 
 $pluginInterface
 
 $namespaces
 
- Protected Attributes inherited from PluginManagerBase
 $discovery
 
 $factory
 
 $mapper
 

Detailed Description

Manages plugins for configuration translation mappers.

Constructor & Destructor Documentation

__construct ( CacheBackendInterface  $cache_backend,
LanguageManagerInterface  $language_manager,
ModuleHandlerInterface  $module_handler,
TypedConfigManagerInterface  $typed_config_manager,
ThemeHandlerInterface  $theme_handler 
)

Constructs a ConfigMapperManager.

Parameters
\Drupal\Core\Cache\CacheBackendInterface$cache_backendThe cache backend.
\Drupal\Core\Language\LanguageManagerInterface$language_managerThe language manager.
\Drupal\Core\Extension\ModuleHandlerInterface$module_handlerThe module handler.
\Drupal\Core\Config\TypedConfigManagerInterface$typed_config_managerThe typed config manager.
\Drupal\Core\Extension\ThemeHandlerInterface$theme_handlerThe theme handler.

References DefaultPluginManager\alterInfo(), LanguageManagerInterface\getCurrentLanguage(), Drupal\moduleHandler(), and DefaultPluginManager\setCacheBackend().

Here is the call graph for this function:

Member Function Documentation

buildDataDefinition ( array  $definition,
  $value = NULL,
  $name = NULL,
  $parent = NULL 
)

{}

findDefinitions ( )
protected

{}

References ConfigMapperManager\getDiscovery(), Drupal\moduleHandler(), and ConfigMapperManager\processDefinition().

Here is the call graph for this function:

findTranslatable ( TypedDataInterface  $element)
protected

Returns TRUE if at least one translatable element is found.

Parameters
\Drupal\Core\TypedData\TypedDataInterface$elementConfiguration schema element.
Returns
bool A boolean indicating if there is at least one translatable element.

References TypedDataInterface\getDataDefinition().

Referenced by ConfigMapperManager\hasTranslatable().

Here is the call graph for this function:

Here is the caller graph for this function:

getDiscovery ( )
protected

{}

References Drupal\moduleHandler().

Referenced by ConfigMapperManager\findDefinitions().

Here is the call graph for this function:

Here is the caller graph for this function:

getMappers ( RouteCollection  $collection = NULL)

{Returns an array of all mappers.

Parameters
\Symfony\Component\Routing\RouteCollection$collectionThe route collection used to initialize the mappers.
Returns
[] An array of all mappers.
}

Implements ConfigMapperManagerInterface.

References PluginManagerBase\createInstance(), and DefaultPluginManager\getDefinitions().

Here is the call graph for this function:

hasTranslatable (   $name)

{Returns TRUE if the configuration data has translatable items.

Parameters
string$nameConfiguration key.
Returns
bool A boolean indicating if the configuration data has translatable items.
}

Implements ConfigMapperManagerInterface.

References ConfigMapperManager\findTranslatable().

Here is the call graph for this function:

processDefinition ( $definition,
  $plugin_id 
)

{}

Referenced by ConfigMapperManager\findDefinitions().

Here is the caller graph for this function:

Field Documentation

$defaults
protected
Initial value:
= array(
'title' => '',
'names' => array(),
'weight' => 20,
'class' => '\Drupal\config_translation\ConfigNamesMapper',
)

{}


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