|
@@ -64,10 +64,12 @@ class AddDependencyCallsCompilerPass implements CompilerPassInterface
|
|
|
}
|
|
|
|
|
|
$groupName = isset($attributes['group']) ? $attributes['group'] : 'default';
|
|
|
+ $labelCatalogue = isset($attributes['label_catalogue']) ? $attributes['label_catalogue'] : 'SonataAdminBundle';
|
|
|
|
|
|
if (!isset($groupDefaults[$groupName])) {
|
|
|
$groupDefaults[$groupName] = array(
|
|
|
- 'label' => $groupName
|
|
|
+ 'label' => $groupName,
|
|
|
+ 'label_catalogue' => $labelCatalogue
|
|
|
);
|
|
|
}
|
|
|
|
|
@@ -95,6 +97,10 @@ class AddDependencyCallsCompilerPass implements CompilerPassInterface
|
|
|
$groups[$groupName]['label'] = $groupDefaults[$groupName]['label'];
|
|
|
}
|
|
|
|
|
|
+ if (empty($group['label_catalogue'])) {
|
|
|
+ $groups[$groupName]['label_catalogue'] = 'SonataAdminBundle';
|
|
|
+ }
|
|
|
+
|
|
|
if (!empty($group['item_adds'])) {
|
|
|
$group['items'] = array_merge($groupDefaults[$groupName]['items'], $group['item_adds']);
|
|
|
}
|