diff --git a/lib/Drupal/config_translation/ConfigEntityMapper.php b/lib/Drupal/config_translation/ConfigEntityMapper.php index 98f8097..f7dba2e 100644 --- a/lib/Drupal/config_translation/ConfigEntityMapper.php +++ b/lib/Drupal/config_translation/ConfigEntityMapper.php @@ -64,11 +64,10 @@ class ConfigEntityMapper implements ConfigMapperInterface { */ private $add_edit_tab = FALSE; - /** * Router name for this group in the routing system. * - * @var bool + * @var string */ private $route_name; @@ -105,35 +104,35 @@ class ConfigEntityMapper 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; } /** - * 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 $this->path_id_index; } /** - * Implements \Drupal\config_translation\ConfigMapperInterface::getConfigGroup(). + * {@inheritdoc} */ public function getConfigGroup($arg = NULL) { // In this implementation, $arg is the config entity loaded via the menu @@ -169,7 +168,7 @@ class ConfigEntityMapper implements ConfigMapperInterface { public function setRouteName() { $search = array('/', '-', '{', '}'); $replace = array('.', '_', '_', '_'); - $this->route_name = 'config_translation.item.' . str_replace($search, $replace, $this->base_path); + $this->route_name = 'config_translation.item.' . str_replace($search, $replace, $this->base_path); } /** @@ -185,4 +184,5 @@ class ConfigEntityMapper implements ConfigMapperInterface { public function getType() { return $this->entity_type; } + }