public function Recipe::__construct in Recipe 8.2
Constructs a Recipe Views display plugin 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 service.
Overrides PathPluginBase::__construct
File
- src/
Plugin/ views/ display/ Recipe.php, line 56
Class
- Recipe
- The plugin that handles a recipe format, such as RecipeML.
Namespace
Drupal\recipe\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;
}