hook_event_dispatcher-8.x-2.04/modules/core_event_dispatcher/src/Event/Core/MailBackendInfoAlterEvent.php

modules/core_event_dispatcher/src/Event/Core/MailBackendInfoAlterEvent.php
<?php

namespace Drupal\core_event_dispatcher\Event\Core;

use Drupal\core_event_dispatcher\CoreHookEvents;
use Drupal\hook_event_dispatcher\Attribute\HookEvent;
use Drupal\hook_event_dispatcher\Event\PluginDefinitionAlterEventBase;

/**
 * Class MailBackendInfoAlterEvent.
 */
#[HookEvent(id: 'mail_backend_info_alter', alter: 'mail_backend_info')]
class MailBackendInfoAlterEvent extends PluginDefinitionAlterEventBase {

  /**
   * Gets mail backend plugin definitions.
   *
   * @return array
   *   The mail backend plugin definitions.
   */
  public function &getInfo(): array {
    return $this->definitions;
  }

  /**
   * {@inheritdoc}
   */
  public function getDispatcherType(): string {
    return CoreHookEvents::MAIL_BACKEND_INFO_ALTER;
  }

}

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

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