public function AutocompletionCallback::__construct in Search Autocomplete 8
Same name and namespace in other branches
- 2.x src/Plugin/views/display/AutocompletionCallback.php \Drupal\search_autocomplete\Plugin\views\display\AutocompletionCallback::__construct()
Constructs a Drupal\rest\Plugin\ResourceBase object.
Parameters
array $configuration: A configuration array containing information about the plugin instance.
string $plugin_id: The plugin_id for the plugin instance.
mixed $plugin_definition: The plugin implementation definition.
\Drupal\Core\Routing\RouteProviderInterface $route_provider: The route provider
\Drupal\Core\State\StateInterface $state: The state key value store.
\Drupal\Core\Render\RendererInterface $renderer: The renderer.
Overrides PathPluginBase::__construct
File
- src/
Plugin/ views/ display/ AutocompletionCallback.php, line 100
Class
- AutocompletionCallback
- The plugin that handles Data response callbacks for REST resources.
Namespace
Drupal\search_autocomplete\Plugin\views\displayCode
public function __construct(array $configuration, $plugin_id, $plugin_definition, RouteProviderInterface $route_provider, StateInterface $state, RendererInterface $renderer) {
parent::__construct($configuration, $plugin_id, $plugin_definition, $route_provider, $state);
$this->renderer = $renderer;
}