You are here

public function WebformNodeElementPreRender::setNid in Webform Node Element 8

Set the nid of the node to display.

Parameters

int $nid: The nid of the node to display.

1 call to WebformNodeElementPreRender::setNid()
WebformNodeElementPreRender::__construct in src/Event/WebformNodeElementPreRender.php
Constructor.

File

src/Event/WebformNodeElementPreRender.php, line 35

Class

WebformNodeElementPreRender
Event dispatched prior to each webform_node_element being rendered.

Namespace

Drupal\webform_node_element\Event

Code

public function setNid($nid) {
  $this->nid = $nid;
}