You are here

public function WebformNodeElementPreRender::setDisplayMode in Webform Node Element 8

Set the display mode to use to render the node.

Parameters

string $display_mode: The machine name of the display mode to use.

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

File

src/Event/WebformNodeElementPreRender.php, line 55

Class

WebformNodeElementPreRender
Event dispatched prior to each webform_node_element being rendered.

Namespace

Drupal\webform_node_element\Event

Code

public function setDisplayMode($display_mode) {
  $this->displayMode = $display_mode;
}