search_api-8.x-1.15/src/Event/GatheringPluginInfoEvent.php

src/Event/GatheringPluginInfoEvent.php
<?php

namespace Drupal\search_api\Event;

use Symfony\Component\EventDispatcher\Event;

/**
 * Wraps a gathering of plugin information event.
 */
final class GatheringPluginInfoEvent extends Event {

  /**
   * The plugin definitions.
   *
   * @var array[]
   */
  protected $definitions;

  /**
   * Constructs a new class instance.
   *
   * @param array[] $definitions
   *   The plugin definitions collected so far, keyed by plugin ID.
   */
  public function __construct(array &$definitions) {
    $this->definitions = &$definitions;
  }

  /**
   * Retrieves the plugin definitions collected so far.
   *
   * @return array[]
   *   The plugin definitions collected so far, keyed by plugin ID.
   */
  public function &getDefinitions() {
    return $this->definitions;
  }

}

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

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