You are here

final class DefaultContentEvents in Default Content for D8 8

Same name and namespace in other branches
  1. 2.0.x src/Event/DefaultContentEvents.php \Drupal\default_content\Event\DefaultContentEvents

Defines the events for Default Content.

Hierarchy

Expanded class hierarchy of DefaultContentEvents

See also

\Drupal\default_content\Event\ImportEvent

\Drupal\default_content\Event\ExportEvent

2 files declare their use of DefaultContentEvents
Exporter.php in src/Exporter.php
Importer.php in src/Importer.php

File

src/Event/DefaultContentEvents.php, line 11

Namespace

Drupal\default_content\Event
View source
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';

}

Members

Namesort descending Modifiers Type Description Overrides
DefaultContentEvents::EXPORT constant Name of the event fired when exporting default content.
DefaultContentEvents::IMPORT constant Name of the event fired when importing default content.