public function PreNodeSaveEvent::__construct in GatherContent 8.4
Same name and namespace in other branches
- 8.3 src/Event/PreNodeSaveEvent.php \Drupal\gathercontent\Event\PreNodeSaveEvent::__construct()
Constructs a pre node save event object.
Parameters
\Drupal\node\NodeInterface $node: Map plugin.
object $sourceValues: Source fields representing object in GatherContent.
array $files: Array of files fetched from GatherContent.
File
- src/
Event/ PreNodeSaveEvent.php, line 44
Class
- PreNodeSaveEvent
- Wraps a pre node save event for event listeners.
Namespace
Drupal\gathercontent\EventCode
public function __construct(NodeInterface $node, $sourceValues, array $files) {
$this->node = $node;
$this->sourceValues = $sourceValues;
$this->files = $files;
}