Mercurial > hg > cmmr2012-drupal-site
annotate core/modules/config_translation/src/ConfigMapperManagerInterface.php @ 5:12f9dff5fda9 tip
Update to Drupal core 8.7.1
author | Chris Cannam |
---|---|
date | Thu, 09 May 2019 15:34:47 +0100 |
parents | c75dbcec494b |
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 } |