You are here

public function WebformNodeElementPreRender::__construct in Webform Node Element 8

Constructor.

File

src/Event/WebformNodeElementPreRender.php, line 23

Class

WebformNodeElementPreRender
Event dispatched prior to each webform_node_element being rendered.

Namespace

Drupal\webform_node_element\Event

Code

public function __construct($element_id, $nid, $display_mode) {
  $this
    ->setNid($nid);
  $this->elementID = $element_id;
  $this
    ->setDisplayMode($display_mode);
}