Issue #3209605 by daffie, Arantxio, jibran, Lendude, quietone: Make the service views.views_data backend overridable

merge-requests/3260/head
xjm 2023-01-16 08:56:00 -06:00
parent ac30a9859a
commit f25a0ab648
No known key found for this signature in database
GPG Key ID: 206B0B8743BDF4C2
2 changed files with 22 additions and 0 deletions

View File

@ -0,0 +1,20 @@
<?php
namespace Drupal\Tests\views\Kernel;
/**
* Tests the service views.views_data.
*
* @group views
*/
class ViewsDataTest extends ViewsKernelTestBase {
/**
* Tests that the service "views.views_data" is backend-overridable.
*/
public function testViewsViewsDataIsBackendOverridable() {
$definition = $this->container->getDefinition('views.views_data');
$this->assertTrue($definition->hasTag('backend_overridable'));
}
}

View File

@ -59,6 +59,8 @@ services:
views.views_data:
class: Drupal\views\ViewsData
arguments: ['@cache.default', '@config.factory', '@module_handler', '@language_manager']
tags:
- { name: backend_overridable }
views.views_data_helper:
class: Drupal\views\ViewsDataHelper
arguments: ['@views.views_data']