diff --git a/src/Configuration/EmbeddedListViewConfigPass.php b/src/Configuration/EmbeddedListViewConfigPass.php
index f0a90ab..d9cbaf3 100644
--- a/src/Configuration/EmbeddedListViewConfigPass.php
+++ b/src/Configuration/EmbeddedListViewConfigPass.php
@@ -10,17 +10,17 @@
*/
class EmbeddedListViewConfigPass implements ConfigPassInterface
{
- private $defaultOpenInNewTabLink;
+ private $defaultOpenNewTab;
- public function __construct($defaultOpenInNewTabLink)
+ public function __construct($defaultOpenNewTab)
{
- $this->defaultOpenInNewTabLink = $defaultOpenInNewTabLink;
+ $this->defaultOpenNewTab = $defaultOpenNewTab;
}
public function process(array $backendConfig)
{
$backendConfig = $this->processSortingConfig($backendConfig);
- $backendConfig = $this->processOpenInNewTabLinkConfig($backendConfig);
+ $backendConfig = $this->processOpenNewTabConfig($backendConfig);
return $backendConfig;
}
@@ -30,11 +30,11 @@ public function process(array $backendConfig)
*
* @return array
*/
- private function processOpenInNewTabLinkConfig(array $backendConfig)
+ private function processOpenNewTabConfig(array $backendConfig)
{
foreach ($backendConfig['entities'] as $entityName => $entityConfig) {
- if (!isset($entityConfig['embeddedList']['open_in_new_tab_link'])) {
- $backendConfig['entities'][$entityName]['embeddedList']['open_in_new_tab_link'] = $this->defaultOpenInNewTabLink;
+ if (!isset($entityConfig['embeddedList']['open_new_tab'])) {
+ $backendConfig['entities'][$entityName]['embeddedList']['open_new_tab'] = $this->defaultOpenNewTab;
}
}
diff --git a/src/DependencyInjection/Configuration.php b/src/DependencyInjection/Configuration.php
index 73d5e48..f8d96b1 100644
--- a/src/DependencyInjection/Configuration.php
+++ b/src/DependencyInjection/Configuration.php
@@ -39,7 +39,7 @@ public function getConfigTreeBuilder()
->arrayNode('embedded_list')
->addDefaultsIfNotSet()
->children()
- ->booleanNode('open_in_new_tab_link')
+ ->booleanNode('open_new_tab')
->defaultTrue()
->end()
->end()
diff --git a/src/DependencyInjection/EasyAdminExtensionExtension.php b/src/DependencyInjection/EasyAdminExtensionExtension.php
index 35f2d64..c9ce40c 100644
--- a/src/DependencyInjection/EasyAdminExtensionExtension.php
+++ b/src/DependencyInjection/EasyAdminExtensionExtension.php
@@ -25,8 +25,8 @@ public function load(array $configs, ContainerBuilder $container)
$container->setParameter('easy_admin_extension.custom_form_types', $config['custom_form_types']);
$container->setParameter('easy_admin_extension.minimum_role', $config['minimum_role']);
$container->setParameter(
- 'easy_admin_extension.embedded_list.open_in_new_tab_link',
- $config['embedded_list']['open_in_new_tab_link']
+ 'easy_admin_extension.embedded_list.open_new_tab',
+ $config['embedded_list']['open_new_tab']
);
$loader = new Loader\XmlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config'));
diff --git a/src/Resources/config/services.xml b/src/Resources/config/services.xml
index e0d049d..e95498d 100644
--- a/src/Resources/config/services.xml
+++ b/src/Resources/config/services.xml
@@ -13,7 +13,7 @@