You are here

public function Markup::__construct in Views XML Backend 8

Constructs a new Markup 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\Session\AccountProxyInterface $current_user: The current user.

Overrides HandlerBase::__construct

File

src/Plugin/views/field/Markup.php, line 43
Contains \Drupal\views_xml_backend\Plugin\views\field\Markup.

Class

Markup
A handler to provide an XML markup field.

Namespace

Drupal\views_xml_backend\Plugin\views\field

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, AccountProxyInterface $current_user, RendererInterface $renderer) {
  parent::__construct($configuration, $plugin_id, $plugin_definition);
  $this->currentUser = $current_user;
  $this->renderer = $renderer;
}