toolshed-8.x-1.x-dev/modules/toolshed_search/src/Attribute/ToolshedSearchAutocomplete.php

modules/toolshed_search/src/Attribute/ToolshedSearchAutocomplete.php
<?php

namespace Drupal\toolshed_search\Attribute;

use Drupal\Component\Plugin\Attribute\Plugin;

/**
 * Toolshed autocomplete plugin.
 *
 * Attribute for providing the plugin definitions for autocomplete plugins. The
 * autocomplete plugins provide autocomplete functionality for toolshed search
 * forms.
 */
#[\Attribute(\Attribute::TARGET_CLASS)]
class ToolshedSearchAutocomplete extends Plugin {

  /**
   * The machine name for the plugin.
   *
   * @param string $id
   *   The plugin unique plugin identifier.
   * @param \Stringable|string $label
   *   The friendly human label for the plugin.
   */
  public function __construct(
    public readonly string $id,
    public readonly \Stringable|string $label,
  ) {}

}

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

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