diff --git a/src/ConfigLister.php b/src/ConfigLister.php index a86e9d2..f8a52fe 100644 --- a/src/ConfigLister.php +++ b/src/ConfigLister.php @@ -123,7 +123,7 @@ class ConfigLister implements ConfigListInterface { public function getTypeNameByConfigName($name) { $definitions = $this->listTypes(); foreach ($this->typesByPrefix as $prefix => $entity_type) { - if (strpos($name, $prefix) === 0) { + if (strpos($name, $prefix . '.') === 0) { return $entity_type; } } @@ -211,7 +211,7 @@ class ConfigLister implements ConfigListInterface { $list = array_combine($list, $list); foreach ($list as $name) { foreach ($prefixes as $prefix) { - if (strpos($name, $prefix) === 0) { + if (strpos($name, $prefix . '.') === 0) { unset($list[$name]); } }