You are here

public function ViewsConditionalField::__construct in Views Conditional 8

Constructs a Handler 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.

Overrides HandlerBase::__construct

File

src/Plugin/views/field/ViewsConditionalField.php, line 39

Class

ViewsConditionalField
Field handler to flag the node type.

Namespace

Drupal\views_conditional\Plugin\views\field

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, DateFormatter $dateFormatter, TimeInterface $dateTime) {
  parent::__construct($configuration, $plugin_id, $plugin_definition);
  $this->dateFormatter = $dateFormatter;
  $this->dateTime = $dateTime;
}