hook_event_dispatcher-8.x-2.04/modules/core_event_dispatcher/src/TokenHookEvents.php
modules/core_event_dispatcher/src/TokenHookEvents.php
<?php
namespace Drupal\core_event_dispatcher;
use Drupal\hook_event_dispatcher\HookEventDispatcherInterface;
/**
* Defines events for token hooks.
*/
final class TokenHookEvents {
/**
* Provide replacement values for placeholder tokens.
*
* @Event
*
* @see \Drupal\core_event_dispatcher\Event\Token\TokensReplacementEvent
* @see core_event_dispatcher_tokens()
* @see hook_tokens()
*
* @var string
*/
public const TOKEN_REPLACEMENT = HookEventDispatcherInterface::PREFIX . 'token.replacement';
/**
* Alter replacement values for tokens.
*
* @Event
*
* @see \Drupal\core_event_dispatcher\Event\Token\TokensReplacementAlterEvent
* @see core_event_dispatcher_tokens_alter()
* @see hook_tokens_alter()
*
* @var string
*/
public const TOKEN_REPLACEMENT_ALTER = HookEventDispatcherInterface::PREFIX . 'token.replacement.alter';
/**
* Provide information about available placeholder tokens and token types.
*
* @Event
*
* @see \Drupal\core_event_dispatcher\Event\Token\TokensInfoEvent
* @see core_event_dispatcher_token_info()
* @see hook_token_info()
*
* @var string
*/
public const TOKEN_INFO = HookEventDispatcherInterface::PREFIX . 'token.info';
}
