PostNodeUploadEvent.php in GatherContent 8.3
Namespace
Drupal\gathercontent\EventFile
src/Event/PostNodeUploadEvent.phpView source
<?php
namespace Drupal\gathercontent\Event;
use Drupal\node\NodeInterface;
use Symfony\Component\EventDispatcher\Event;
/**
* Wraps a post node upload event for event listeners.
*/
class PostNodeUploadEvent extends Event {
/**
* Node object.
*
* @var \Drupal\node\NodeInterface
*/
protected $node;
/**
* Source fields.
*
* @var array
*/
protected $gathercontentValues;
/**
* Constructs a post node upload event object.
*
* @param \Drupal\node\NodeInterface $node
* Map plugin.
* @param array $gathercontentValues
* Source fields representing object in GatherContent.
*/
public function __construct(NodeInterface $node, array $gathercontentValues) {
$this->node = $node;
$this->gathercontentValues = $gathercontentValues;
}
/**
* Gets the node object.
*
* @return \Drupal\node\NodeInterface
* The node object.
*/
public function getNode() {
return $this->node;
}
/**
* Gets the array of source fields.
*
* @return array
* Source fields.
*/
public function getGathercontentValues() {
return $this->gathercontentValues;
}
}
Classes
Name![]() |
Description |
---|---|
PostNodeUploadEvent | Wraps a post node upload event for event listeners. |