Issue #3209605 by daffie, Arantxio, jibran, Lendude, quietone: Make the service views.views_data backend overridable
parent
ac30a9859a
commit
f25a0ab648
|
@ -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'));
|
||||
}
|
||||
|
||||
}
|
|
@ -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']
|
||||
|
|
Loading…
Reference in New Issue