public function ConfigMapperManager::getMappers in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/config_translation/src/ConfigMapperManager.php \Drupal\config_translation\ConfigMapperManager::getMappers()
Returns an array of all mappers.
Parameters
\Symfony\Component\Routing\RouteCollection $collection: The route collection used to initialize the mappers.
Return value
\Drupal\config_translation\ConfigMapperInterface[] An array of all mappers.
Overrides ConfigMapperManagerInterface::getMappers
File
- core/
modules/ config_translation/ src/ ConfigMapperManager.php, line 117 - Contains \Drupal\config_translation\ConfigMapperManager.
Class
- ConfigMapperManager
- Manages plugins for configuration translation mappers.
Namespace
Drupal\config_translationCode
public function getMappers(RouteCollection $collection = NULL) {
$mappers = array();
foreach ($this
->getDefinitions() as $id => $definition) {
$mappers[$id] = $this
->createInstance($id);
if ($collection) {
$mappers[$id]
->setRouteCollection($collection);
}
}
return $mappers;
}