summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordereine2017-09-08 06:52:52 +0200
committerMateu Aguiló Bosch2017-09-08 06:52:52 +0200
commit95eecfdc9eb025ddbf5f7a2d6622798d060442af (patch)
tree98bc19c6733c2bc0fec06a39b71b34880bb7311f
parent74efb5b55807ee388236bf469fd1172af15464dc (diff)
fix(Resource Repository): Fix regression in ConfigurableResourceTypeRepository::getResourceTypes (#2907429 by dawehner)
-rw-r--r--src/ResourceType/ConfigurableResourceTypeRepository.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ResourceType/ConfigurableResourceTypeRepository.php b/src/ResourceType/ConfigurableResourceTypeRepository.php
index d8ac047..321a821 100644
--- a/src/ResourceType/ConfigurableResourceTypeRepository.php
+++ b/src/ResourceType/ConfigurableResourceTypeRepository.php
@@ -98,7 +98,7 @@ class ConfigurableResourceTypeRepository extends ResourceTypeRepository {
foreach ($entity_type_ids as $entity_type_id) {
$bundles = array_keys($this->bundleManager->getBundleInfo($entity_type_id));
$resource_config_ids = array_merge($resource_config_ids, array_map(function ($bundle) use ($entity_type_id) {
- $resource_config_ids[] = sprintf('%s--%s', $entity_type_id, $bundle);
+ return sprintf('%s--%s', $entity_type_id, $bundle);
}, $bundles));
}