You are here

public function BlocksByRegion::__construct in GraphQL 8.3

BlocksByRegion 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\Theme\ThemeManagerInterface $themeManager: The theme manager service.

\Drupal\Core\Entity\EntityTypeManagerInterface $entityTypeManager: The entity type manager service.

\Drupal\Core\Entity\EntityRepositoryInterface $entityRepository: The entity repository service.

Overrides PluginBase::__construct

File

modules/graphql_core/src/Plugin/GraphQL/Fields/Blocks/BlocksByRegion.php, line 103

Class

BlocksByRegion
List all blocks within a theme region.

Namespace

Drupal\graphql_core\Plugin\GraphQL\Fields\Blocks

Code

public function __construct(array $configuration, $pluginId, $pluginDefinition, SubRequestBuffer $subRequestBuffer, ThemeManagerInterface $themeManager, EntityTypeManagerInterface $entityTypeManager, EntityRepositoryInterface $entityRepository) {
  parent::__construct($configuration, $pluginId, $pluginDefinition);
  $this->subRequestBuffer = $subRequestBuffer;
  $this->themeManager = $themeManager;
  $this->entityTypeManager = $entityTypeManager;
  $this->entityRepository = $entityRepository;
}