class PostNodeUploadEvent in GatherContent 8.5
Wraps a post node upload event for event listeners.
Hierarchy
- class \Drupal\gathercontent_upload\Event\PostNodeUploadEvent extends \Symfony\Component\EventDispatcher\Event
Expanded class hierarchy of PostNodeUploadEvent
1 file declares its use of PostNodeUploadEvent
- Exporter.php in gathercontent_upload/
src/ Export/ Exporter.php
File
- gathercontent_upload/
src/ Event/ PostNodeUploadEvent.php, line 11
Namespace
Drupal\gathercontent_upload\EventView source
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\Core\Entity\EntityInterface $node
* Entity object.
* @param array $gathercontentValues
* Source fields representing object in GatherContent.
*/
public function __construct(EntityInterface $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;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
PostNodeUploadEvent:: |
protected | property | Source fields. | |
PostNodeUploadEvent:: |
protected | property | Node object. | |
PostNodeUploadEvent:: |
public | function | Gets the array of source fields. | |
PostNodeUploadEvent:: |
public | function | Gets the node object. | |
PostNodeUploadEvent:: |
public | function | Constructs a post node upload event object. |