You are here

DefaultContentEvents.php in Default Content for D8 8

Same filename and directory in other branches
  1. 2.0.x src/Event/DefaultContentEvents.php

File

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

namespace Drupal\default_content\Event;


/**
 * Defines the events for Default Content.
 *
 * @see \Drupal\default_content\Event\ImportEvent
 * @see \Drupal\default_content\Event\ExportEvent
 */
final class DefaultContentEvents {

  /**
   * Name of the event fired when importing default content.
   *
   * This event allows modules to perform actions after the default content has
   * been imported. The event listener receives a
   * \Drupal\default_content\Event\ImportEvent instance.
   *
   * @Event
   *
   * @see \Drupal\default_content\Event\ImportEvent
   *
   * @var string
   */
  const IMPORT = 'default_content.import';

  /**
   * Name of the event fired when exporting default content.
   *
   * This event allows modules to perform actions after the default content has
   * been exported. The event listener receives a
   * \Drupal\default_content\Event\ExportEvent instance.
   *
   * @Event
   *
   * @see \Drupal\default_content\Event\ExportEvent
   *
   * @var string
   */
  const EXPORT = 'default_content.export';

}

Classes

Namesort descending Description
DefaultContentEvents Defines the events for Default Content.