You are here

public function CacheableMetadataCalculationTest::__construct in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/views/tests/modules/views_test_cacheable_metadata_calculation/src/Plugin/views/access/CacheableMetadataCalculationTest.php \Drupal\views_test_cacheable_metadata_calculation\Plugin\views\access\CacheableMetadataCalculationTest::__construct()
  2. 9 core/modules/views/tests/modules/views_test_cacheable_metadata_calculation/src/Plugin/views/access/CacheableMetadataCalculationTest.php \Drupal\views_test_cacheable_metadata_calculation\Plugin\views\access\CacheableMetadataCalculationTest::__construct()

Constructs a CacheableMetadataCalculationTest access plugin.

Parameters

array $configuration: A configuration array containing information about the plugin instance.

string $plugin_id: The plugin_id for the plugin instance.

mixed $plugin_definition: The plugin implementation definition.

\Drupal\Core\State\StateInterface $state: The state service.

Overrides PluginBase::__construct

File

core/modules/views/tests/modules/views_test_cacheable_metadata_calculation/src/Plugin/views/access/CacheableMetadataCalculationTest.php, line 43

Class

CacheableMetadataCalculationTest
Tests plugin that reports when cacheable metadata is being calculated.

Namespace

Drupal\views_test_cacheable_metadata_calculation\Plugin\views\access

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, StateInterface $state) {
  parent::__construct($configuration, $plugin_id, $plugin_definition);
  $this->state = $state;
}