You are here

public function Breadcrumbs::__construct in GraphQL 8.3

Breadcrumbs constructor.

Parameters

array $configuration: The plugin configuration array.

string $pluginId: The plugin id.

mixed $pluginDefinition: The plugin definition.

\Drupal\graphql\GraphQL\Buffers\SubRequestBuffer $subRequestBuffer: The sub-request buffer service.

\Drupal\Core\Breadcrumb\BreadcrumbManager $breadcrumbManager: The breadcrumb manager service.

\Drupal\Core\Routing\RouteMatchInterface $routeMatch: The current route match.

Overrides PluginBase::__construct

File

modules/graphql_core/src/Plugin/GraphQL/Fields/Breadcrumbs/Breadcrumbs.php, line 80

Class

Breadcrumbs
Retrieve the breadcrumbs.

Namespace

Drupal\graphql_core\Plugin\GraphQL\Fields\Breadcrumbs

Code

public function __construct(array $configuration, $pluginId, $pluginDefinition, SubRequestBuffer $subRequestBuffer, BreadcrumbManager $breadcrumbManager, RouteMatchInterface $routeMatch) {
  parent::__construct($configuration, $pluginId, $pluginDefinition);
  $this->subRequestBuffer = $subRequestBuffer;
  $this->breadcrumbManager = $breadcrumbManager;
  $this->routeMatch = $routeMatch;
}