public function ExampleWithDependencyInjection::__construct in Extra Field 8
Same name and namespace in other branches
- 8.2 modules/extra_field_example/src/Plugin/ExtraField/Display/ExampleWithDependencyInjection.php \Drupal\extra_field_example\Plugin\ExtraField\Display\ExampleWithDependencyInjection::__construct()
Constructs a ExtraFieldDisplayFormattedBase 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.
\Symfony\Component\HttpFoundation\RequestStack $request_stack: The request stack.
Overrides PluginBase::__construct
File
- modules/
extra_field_example/ src/ Plugin/ ExtraField/ Display/ ExampleWithDependencyInjection.php, line 46
Class
- ExampleWithDependencyInjection
- Example Extra field Display.
Namespace
Drupal\extra_field_example\Plugin\ExtraField\DisplayCode
public function __construct(array $configuration, $plugin_id, $plugin_definition, RequestStack $request_stack) {
parent::__construct($configuration, $plugin_id, $plugin_definition);
$this->currentRequest = $request_stack
->getCurrentRequest();
}