You are here

public function NodeToUpdateEvent::setNode in GatherContent 8.4

Sets the node object.

Return value

\Drupal\node\NodeInterface The node object.

File

src/Event/NodeToUpdateEvent.php, line 53

Class

NodeToUpdateEvent
Wraps a node to update event for event listeners.

Namespace

Drupal\gathercontent\Event

Code

public function setNode(NodeInterface $node) {
  $this->node = $node;
}