diff --git a/lib/Drupal/config_translation/ConfigGroupMapper.php b/lib/Drupal/config_translation/ConfigGroupMapper.php index ae1126e..8ab5f3f 100644 --- a/lib/Drupal/config_translation/ConfigGroupMapper.php +++ b/lib/Drupal/config_translation/ConfigGroupMapper.php @@ -52,7 +52,7 @@ class ConfigGroupMapper implements ConfigMapperInterface { /** * Router name for this group in the routing system. * - * @var bool + * @var string */ private $route_name; @@ -82,14 +82,14 @@ class ConfigGroupMapper implements ConfigMapperInterface { } /** - * Implements \Drupal\config_translation\ConfigMapperInterface::hasEditTab(). + * {@inheritdoc} */ public function hasEditTab() { return $this->add_edit_tab; } /** - * Implements \Drupal\config_translation\ConfigMapperInterface::getBasePath(). + * {@inheritdoc} */ public function getBasePath() { return $this->base_path; @@ -116,21 +116,21 @@ class ConfigGroupMapper implements ConfigMapperInterface { } /** - * Implements \Drupal\config_translation\ConfigMapperInterface::getMenuType(). + * {@inheritdoc} */ public function getMenuType() { return $this->menu_type; } /** - * Implements \Drupal\config_translation\ConfigMapperInterface::getPathIdIndex(). + * {@inheritdoc} */ public function getPathIdIndex() { return NULL; } /** - * Implements \Drupal\config_translation\ConfigMapperInterface::getConfigGroup(). + * {@inheritdoc} */ public function getConfigGroup($arg = NULL) { // This is already a config group. @@ -140,9 +140,8 @@ class ConfigGroupMapper implements ConfigMapperInterface { /** * Returns the original language code of the configuration group. * - * @todo - * Assumes the langcode of the first element for now. Might lead to - * inconsistency. Revisit. + * @todo Revisit. This assumes the langcode of the first element for now and + * might lead to inconsistency. */ public function getLangcode() { return config_translation_original_langcode($this->names[0]); @@ -197,7 +196,7 @@ class ConfigGroupMapper implements ConfigMapperInterface { } /** - * Checks that all pieces of this configuration group has translatables. + * Checks that all pieces of this configuration group have translatables. * * @return bool * TRUE if all of the group elements have translatables, FALSE otherwise. @@ -244,7 +243,7 @@ class ConfigGroupMapper implements ConfigMapperInterface { * {@inheritdoc} */ public function setRouteName() { - $this->route_name = 'config_translation.item.' . str_replace(array('/', '-'), array('.', '_'), $this->base_path); + $this->route_name = 'config_translation.item.' . str_replace(array('/', '-'), array('.', '_'), $this->base_path); } /** @@ -260,4 +259,5 @@ class ConfigGroupMapper implements ConfigMapperInterface { public function getType() { return NULL; } + }