You are here

final class TomeSyncEvents in Tome 8

Defines events for Tome Sync.

Hierarchy

Expanded class hierarchy of TomeSyncEvents

6 files declare their use of TomeSyncEvents
BookEventSubscriber.php in modules/tome_sync/src/EventSubscriber/BookEventSubscriber.php
ContentHasherEventSubscriber.php in modules/tome_sync/src/EventSubscriber/ContentHasherEventSubscriber.php
ExportCommand.php in modules/tome_sync/src/Commands/ExportCommand.php
Exporter.php in modules/tome_sync/src/Exporter.php
ImportCompleteCommand.php in modules/tome_sync/src/Commands/ImportCompleteCommand.php

... See full list

File

modules/tome_sync/src/Event/TomeSyncEvents.php, line 8

Namespace

Drupal\tome_sync\Event
View source
final class TomeSyncEvents {

  /**
   * Name of the event fired after a single content entity is exported.
   *
   * @Event
   *
   * @see \Drupal\tome_sync\Event\ContentCrudEvent
   *
   * @var string
   */
  const EXPORT_CONTENT = 'tome_sync.export_content';

  /**
   * Name of the event fired after a single content entity is deleted.
   *
   * @Event
   *
   * @see \Drupal\tome_sync\Event\ContentCrudEvent
   *
   * @var string
   */
  const DELETE_CONTENT = 'tome_sync.delete_content';

  /**
   * Name of the event fired after a single content entity is imported.
   *
   * @Event
   *
   * @see \Drupal\tome_sync\Event\ContentCrudEvent
   *
   * @var string
   */
  const IMPORT_CONTENT = 'tome_sync.import_content';

  /**
   * Name of the event fired after the entire export process is complete.
   *
   * @Event
   *
   * @see \Symfony\Component\EventDispatcher\Event
   *
   * @var string
   */
  const EXPORT_ALL = 'tome_sync.export_all';

  /**
   * Name of the event fired after the entire import process is complete.
   *
   * @Event
   *
   * @see \Symfony\Component\EventDispatcher\Event
   *
   * @var string
   */
  const IMPORT_ALL = 'tome_sync.import_all';

}

Members

Namesort descending Modifiers Type Description Overrides
TomeSyncEvents::DELETE_CONTENT constant Name of the event fired after a single content entity is deleted.
TomeSyncEvents::EXPORT_ALL constant Name of the event fired after the entire export process is complete.
TomeSyncEvents::EXPORT_CONTENT constant Name of the event fired after a single content entity is exported.
TomeSyncEvents::IMPORT_ALL constant Name of the event fired after the entire import process is complete.
TomeSyncEvents::IMPORT_CONTENT constant Name of the event fired after a single content entity is imported.