hook_event_dispatcher-8.x-2.04/modules/path_event_dispatcher/src/Event/Path/PathDeleteEvent.php

modules/path_event_dispatcher/src/Event/Path/PathDeleteEvent.php
<?php

namespace Drupal\path_event_dispatcher\Event\Path;

use Drupal\hook_event_dispatcher\Attribute\HookEvent;
use Drupal\path_event_dispatcher\PathHookEvents;

/**
 * Class PathDeleteEvent.
 */
#[HookEvent(id: 'path_delete', hook: 'path_alias_delete')]
final class PathDeleteEvent extends AbstractPathEvent {

  /**
   * Getter.
   *
   * @return bool
   *   If it's a redirect.
   */
  public function isRedirect(): bool {
    return FALSE;
  }

  /**
   * Get the dispatcher type.
   *
   * @return string
   *   The dispatcher type.
   */
  public function getDispatcherType(): string {
    return PathHookEvents::PATH_DELETE;
  }

}

Главная | Обратная связь

drupal hosting | друпал хостинг | it patrol .inc