You are here

public function MediaBridge::__construct in Open Social 10.1.x

Same name and namespace in other branches
  1. 10.3.x modules/custom/social_graphql/src/Plugin/GraphQL/DataProducer/MediaBridge.php \Drupal\social_graphql\Plugin\GraphQL\DataProducer\MediaBridge::__construct()
  2. 10.0.x modules/custom/social_graphql/src/Plugin/GraphQL/DataProducer/MediaBridge.php \Drupal\social_graphql\Plugin\GraphQL\DataProducer\MediaBridge::__construct()
  3. 10.2.x modules/custom/social_graphql/src/Plugin/GraphQL/DataProducer/MediaBridge.php \Drupal\social_graphql\Plugin\GraphQL\DataProducer\MediaBridge::__construct()

MediaBridge constructor.

@codeCoverageIgnore

Parameters

array $configuration: The plugin configuration array.

string $pluginId: The plugin id.

array $pluginDefinition: The plugin definition array.

\Drupal\graphql\GraphQL\Buffers\EntityBuffer $entityBuffer: The entity buffer service.

File

modules/custom/social_graphql/src/Plugin/GraphQL/DataProducer/MediaBridge.php, line 87

Class

MediaBridge
The media bridge provides a way to get data from File fields and Media.

Namespace

Drupal\social_graphql\Plugin\GraphQL\DataProducer

Code

public function __construct(array $configuration, $pluginId, array $pluginDefinition, EntityBuffer $entityBuffer) {
  parent::__construct($configuration, $pluginId, $pluginDefinition);
  $this->entityBuffer = $entityBuffer;
}