You are here

public static function EntityDataProducerPluginBase::create in Open Social 10.1.x

Same name and namespace in other branches
  1. 10.0.x modules/custom/social_graphql/src/Plugin/GraphQL/DataProducer/Entity/EntityDataProducerPluginBase.php \Drupal\social_graphql\Plugin\GraphQL\DataProducer\Entity\EntityDataProducerPluginBase::create()

@codeCoverageIgnore

Overrides ContainerFactoryPluginInterface::create

File

modules/custom/social_graphql/src/Plugin/GraphQL/DataProducer/Entity/EntityDataProducerPluginBase.php, line 53

Class

EntityDataProducerPluginBase
Bass class for Open Social entity data producers dealing with connections.

Namespace

Drupal\social_graphql\Plugin\GraphQL\DataProducer\Entity

Code

public static function create(ContainerInterface $container, array $configuration, $plugin_id, $plugin_definition) {
  return new static($configuration, $plugin_id, $plugin_definition, $container
    ->get('entity_type.manager'), $container
    ->get('graphql.buffer.entity'), $container
    ->get('graphql.buffer.entity_uuid'), $container
    ->get('graphql.buffer.entity_revision'));
}