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