You are here

public function MultipleItemsFieldWithCacheDependencyTest::__construct in Extra Field 8

Same name and namespace in other branches
  1. 8.2 tests/extra_field_test/src/Plugin/ExtraField/Display/MultipleItemsFieldWithCacheDependencyTest.php \Drupal\extra_field_test\Plugin\ExtraField\Display\MultipleItemsFieldWithCacheDependencyTest::__construct()

Constructs a MultipleItemsFieldWithCacheDependencyTest object.

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\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.

\Drupal\Core\Render\RendererInterface $renderer: The render service.

Overrides PluginBase::__construct

File

tests/extra_field_test/src/Plugin/ExtraField/Display/MultipleItemsFieldWithCacheDependencyTest.php, line 57

Class

MultipleItemsFieldWithCacheDependencyTest
Extra field Display for a field with multiple items output.

Namespace

Drupal\extra_field_test\Plugin\ExtraField\Display

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, EntityTypeManagerInterface $entity_type_manager, RendererInterface $renderer) {
  parent::__construct($configuration, $plugin_id, $plugin_definition);
  $this->entityTypeManager = $entity_type_manager;
  $this->renderer = $renderer;
}