final class GatherContentEvents in GatherContent 8.3
Same name and namespace in other branches
- 8.4 src/Event/GatherContentEvents.php \Drupal\gathercontent\Event\GatherContentEvents
Defines events for the GatherContent module.
Hierarchy
- class \Drupal\gathercontent\Event\GatherContentEvents
Expanded class hierarchy of GatherContentEvents
See also
\Drupal\gathercontent\Event\PreNodeSaveEvent
\Drupal\gathercontent\Event\PostNodeSaveEvent
\Drupal\gathercontent\Event\PostImportEvent
1 file declares its use of GatherContentEvents
- gathercontent.module in ./
gathercontent.module - Main module file for GatherContent module.
File
- src/
Event/ GatherContentEvents.php, line 12
Namespace
Drupal\gathercontent\EventView source
final class GatherContentEvents {
/**
* Name of the event fired before we save node from GatherContent.
*
* This event allows modules to perform an action before new node is saved
* from GatherContent to Drupal. The event is triggered just before entity
* save. The event listener method receives
* a \Drupal\gathercontent\Event\PreNodeSaveEvent instance.
*
* @Event
*
* @see \Drupal\gathercontent\Event\PreNodeSaveEvent
*
* @var string
*/
const PRE_NODE_SAVE = 'gathercontent.pre_node_save';
/**
* Name of the event fired after we save node from GatherContent.
*
* This event allows modules to perform an action after new node is saved
* from GatherContent to Drupal. The event is triggered after menu item
* creation. The event listener method receives
* a \Drupal\gathercontent\Event\PostNodeSaveEvent instance.
*
* @Event
*
* @see \Drupal\gathercontent\Event\PostNodeSaveEvent
*
* @var string
*/
const POST_NODE_SAVE = 'gathercontent.post_node_save';
/**
* Name of the event fired before we post node to GatherContent.
*
* This event allows modules to perform an action before node is uploaded
* from Drupal to GatherContent. The event listener method receives
* a \Drupal\gathercontent\Event\PreNodeUploadEvent instance.
*
* @Event
*
* @see \Drupal\gathercontent\Event\PreNodeUploadEvent
*
* @var string
*/
const PRE_NODE_UPLOAD = 'gathercontent.pre_node_upload';
/**
* Name of the event fired after we post node to GatherContent.
*
* This event allows modules to perform an action after node is uploaded
* to GatherContent from Drupal. The event is triggered only after successful
* upload. The event listener method receives
* a \Drupal\gathercontent\Event\PostNodeSaveEvent instance.
*
* @Event
*
* @see \Drupal\gathercontent\Event\PostNodeUploadEvent
*
* @var string
*/
const POST_NODE_UPLOAD = 'gathercontent.post_node_upload';
/**
* Name of the event fired after we save node from GatherContent.
*
* This event allows modules to perform an action after selected nodes are
* imported from GatherContent to Drupal. The event listener method receives
* a \Drupal\gathercontent\Event\PostImportEvent instance.
*
* @Event
*
* @see \Drupal\gathercontent\Event\PostImportEvent
*
* @var string
*/
const POST_IMPORT = 'gathercontent.post_import';
/**
* Name of the event fired after we post node to GatherContent.
*
* This event allows modules to perform an action after selected nodes are
* uploaded to GatherContent from Drupal. The event listener method receives
* a \Drupal\gathercontent\Event\PostUploadEvent instance.
*
* @Event
*
* @see \Drupal\gathercontent\Event\PostUploadEvent
*
* @var string
*/
const POST_UPLOAD = 'gathercontent.post_upload';
}
Members
Name![]() |
Modifiers | Type | Description | Overrides |
---|---|---|---|---|
GatherContentEvents:: |
constant | Name of the event fired after we save node from GatherContent. | ||
GatherContentEvents:: |
constant | Name of the event fired after we save node from GatherContent. | ||
GatherContentEvents:: |
constant | Name of the event fired after we post node to GatherContent. | ||
GatherContentEvents:: |
constant | Name of the event fired after we post node to GatherContent. | ||
GatherContentEvents:: |
constant | Name of the event fired before we save node from GatherContent. | ||
GatherContentEvents:: |
constant | Name of the event fired before we post node to GatherContent. |