You are here

final class TomeStaticEvents in Tome 8

Defines events for Tome Static.

Hierarchy

Expanded class hierarchy of TomeStaticEvents

15 files declare their use of TomeStaticEvents
CollectPathsEventTest.php in modules/tome_static/tests/src/Kernel/CollectPathsEventTest.php
EntityPathSubscriber.php in modules/tome_static/src/EventSubscriber/EntityPathSubscriber.php
ExcludePathSubscriber.php in modules/tome_static/src/EventSubscriber/ExcludePathSubscriber.php
FileSavedEventTest.php in modules/tome_static/tests/src/Kernel/FileSavedEventTest.php
LanguagePathSubscriber.php in modules/tome_static/src/EventSubscriber/LanguagePathSubscriber.php

... See full list

File

modules/tome_static/src/Event/TomeStaticEvents.php, line 8

Namespace

Drupal\tome_static\Event
View source
final class TomeStaticEvents {

  /**
   * Name of the event fired when collecting paths for the static generator.
   *
   * @Event
   *
   * @see \Drupal\tome_static\Event\CollectPathsEvent
   *
   * @var string
   */
  const COLLECT_PATHS = 'tome_static.collect_paths';

  /**
   * Name of the event fired when replacing a path placeholder.
   *
   * @Event
   *
   * @see \Drupal\tome_static\Event\PathPlaceholderEvent
   *
   * @var string
   */
  const PATH_PLACEHOLDER = 'tome_static.path_placeholder';

  /**
   * Name of the event fired when preparing for a new request.
   *
   * @Event
   *
   * @var string
   */
  const REQUEST_PREPARE = 'tome_static.request_prepare';

  /**
   * Name of the event fired when finding paths related to an HTML document.
   *
   * @Event
   *
   * @see \Drupal\tome_static\Event\ModifyHtmlEvent
   *
   * @var string
   */
  const MODIFY_HTML = 'tome_static.modify_html';

  /**
   * Modifies the destination path for a static page.
   *
   * @Event
   *
   * @see \Drupal\tome_static\Event\ModifyDestinationEvent
   *
   * @var string
   */
  const MODIFY_DESTINATION = 'tome_static.modify_destination';

  /**
   * Name of the event fired when a static file is saved.
   *
   * @Event
   *
   * @see \Drupal\tome_static\Event\FileSavedEvent
   *
   * @var string
   */
  const FILE_SAVED = 'tome_static.file_saved';

}

Members

Namesort descending Modifiers Type Description Overrides
TomeStaticEvents::COLLECT_PATHS constant Name of the event fired when collecting paths for the static generator.
TomeStaticEvents::FILE_SAVED constant Name of the event fired when a static file is saved.
TomeStaticEvents::MODIFY_DESTINATION constant Modifies the destination path for a static page.
TomeStaticEvents::MODIFY_HTML constant Name of the event fired when finding paths related to an HTML document.
TomeStaticEvents::PATH_PLACEHOLDER constant Name of the event fired when replacing a path placeholder.
TomeStaticEvents::REQUEST_PREPARE constant Name of the event fired when preparing for a new request.