1 | <?php |
||
39 | class EntityQuery extends FieldPluginBase implements ContainerFactoryPluginInterface { |
||
|
|||
40 | use DependencySerializationTrait; |
||
41 | |||
42 | /** |
||
43 | * The entity type manager. |
||
44 | * |
||
45 | * @var \Drupal\Core\Entity\EntityTypeManagerInterface |
||
46 | */ |
||
47 | protected $entityTypeManager; |
||
48 | |||
49 | /** |
||
50 | * {@inheritdoc} |
||
51 | */ |
||
52 | public function __construct(array $configuration, $pluginId, $pluginDefinition, EntityTypeManagerInterface $entityTypeManager) { |
||
56 | |||
57 | /** |
||
58 | * {@inheritdoc} |
||
59 | */ |
||
60 | public static function create(ContainerInterface $container, array $configuration, $pluginId, $pluginDefinition) { |
||
68 | |||
69 | /** |
||
70 | * {@inheritdoc} |
||
71 | */ |
||
72 | protected function getCacheDependencies(array $result, $value, array $args, ResolveInfo $info) { |
||
82 | |||
83 | /** |
||
84 | * {@inheritdoc} |
||
85 | */ |
||
86 | public function resolveValues($value, array $args, ResolveInfo $info) { |
||
89 | |||
90 | /** |
||
91 | * Create an entity query for the plugin's entity type. |
||
92 | * |
||
93 | * @param mixed $value |
||
94 | * The parent entity type. |
||
95 | * @param array $args |
||
96 | * The field arguments array. |
||
97 | * @param \Youshido\GraphQL\Execution\ResolveInfo $info |
||
98 | * The resolve info object. |
||
99 | * |
||
100 | * @return \Drupal\Core\Entity\Query\QueryInterface |
||
101 | * The entity query object. |
||
102 | */ |
||
103 | protected function getQuery($value, array $args, ResolveInfo $info) { |
||
126 | |||
127 | } |
||
128 |