final class GatherContentEvents in GatherContent 8.4
Same name and namespace in other branches
- 8.3 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\NodeToUpdateEvent
\Drupal\gathercontent\Event\PreNodeSaveEvent
\Drupal\gathercontent\Event\PostNodeSaveEvent
\Drupal\gathercontent\Event\PostImportEvent
3 files declare their use of GatherContentEvents
- gathercontent.module in ./
gathercontent.module - Main module file for GatherContent module.
- Importer.php in src/
Import/ Importer.php - MockGcEventSubscriber.php in tests/
modules/ gathercontent_test/ src/ EventSubscriber/ MockGcEventSubscriber.php
File
- src/
Event/ GatherContentEvents.php, line 13
Namespace
Drupal\gathercontent\EventView source
final class GatherContentEvents {
/**
* Name of the event fired before we determine the node to update.
*
* This event allows modules to provide an alternative node to update based
* on custom criteria rather than the default GatherContent node to update
* rules. The event is triggered just before the importer attempts to create
* a node or find an existing node to update. The event listener method
* receives a \Drupal\gathercontent\Event\NodeToUpdateEvent instance.
*
* @Event
*
* @see \Drupal\gathercontent\Event\NodeToUpdateEvent
*
* @var string
*/
const NODE_TO_UPDATE = 'gathercontent.node_to_update';
/**
* 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 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';
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
GatherContentEvents:: |
constant | Name of the event fired before we determine the node to update. | ||
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 before we save node from GatherContent. |