Mercurial > hg > isophonics-drupal-site
comparison core/modules/config_translation/src/ConfigMapperManagerInterface.php @ 0:4c8ae668cc8c
Initial import (non-working)
author | Chris Cannam |
---|---|
date | Wed, 29 Nov 2017 16:09:58 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:4c8ae668cc8c |
---|---|
1 <?php | |
2 | |
3 namespace Drupal\config_translation; | |
4 | |
5 use Drupal\Component\Plugin\PluginManagerInterface; | |
6 use Symfony\Component\Routing\RouteCollection; | |
7 | |
8 /** | |
9 * Provides a common interface for config mapper managers. | |
10 */ | |
11 interface ConfigMapperManagerInterface extends PluginManagerInterface { | |
12 | |
13 /** | |
14 * Returns an array of all mappers. | |
15 * | |
16 * @param \Symfony\Component\Routing\RouteCollection $collection | |
17 * The route collection used to initialize the mappers. | |
18 * | |
19 * @return \Drupal\config_translation\ConfigMapperInterface[] | |
20 * An array of all mappers. | |
21 */ | |
22 public function getMappers(RouteCollection $collection = NULL); | |
23 | |
24 /** | |
25 * Returns TRUE if the configuration data has translatable items. | |
26 * | |
27 * @param string $name | |
28 * Configuration key. | |
29 * | |
30 * @return bool | |
31 * A boolean indicating if the configuration data has translatable items. | |
32 */ | |
33 public function hasTranslatable($name); | |
34 | |
35 } |