You are here

GatherContentEvents.php in GatherContent 8.3

Same filename and directory in other branches
  1. 8.4 src/Event/GatherContentEvents.php

File

src/Event/GatherContentEvents.php
View source
<?php

namespace Drupal\gathercontent\Event;


/**
 * Defines events for the GatherContent module.
 *
 * @see \Drupal\gathercontent\Event\PreNodeSaveEvent
 * @see \Drupal\gathercontent\Event\PostNodeSaveEvent
 * @see \Drupal\gathercontent\Event\PostImportEvent
 */
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';

}

Classes

Namesort descending Description
GatherContentEvents Defines events for the GatherContent module.