1 | <?php |
||
26 | class GraphQLEntityRow extends RowPluginBase { |
||
27 | |||
28 | use EntityTranslationRenderTrait { |
||
29 | getEntityTranslationRenderer as getEntityTranslationRendererBase; |
||
30 | } |
||
31 | |||
32 | /** |
||
33 | * {@inheritdoc} |
||
34 | */ |
||
35 | protected $usesOptions = FALSE; |
||
36 | |||
37 | /** |
||
38 | * Contains the entity type of this row plugin instance. |
||
39 | * |
||
40 | * @var \Drupal\Core\Entity\EntityTypeInterface |
||
41 | */ |
||
42 | protected $entityType; |
||
43 | |||
44 | /** |
||
45 | * The entity type bundle info. |
||
46 | * |
||
47 | * @var \Drupal\Core\Entity\EntityTypeBundleInfo |
||
48 | */ |
||
49 | protected $entityTypeBundleInfo; |
||
50 | |||
51 | /** |
||
52 | * The entity type manager. |
||
53 | * |
||
54 | * @var \Drupal\Core\Entity\EntityTypeManager |
||
55 | */ |
||
56 | protected $entityTypeManager; |
||
57 | |||
58 | /** |
||
59 | * The entity type bundle info. |
||
60 | * |
||
61 | * @var \Drupal\Core\Entity\EntityRepository |
||
62 | */ |
||
63 | protected $entityRepository; |
||
64 | |||
65 | /** |
||
66 | * The language manager. |
||
67 | * |
||
68 | * @var \Drupal\Core\Language\LanguageManagerInterface |
||
69 | */ |
||
70 | protected $languageManager; |
||
71 | |||
72 | /** |
||
73 | * {@inheritdoc} |
||
74 | * |
||
75 | * @param \Drupal\Core\Entity\EntityTypeBundleInfo $entityTypeBundleInfo |
||
76 | * The entity type manager. |
||
77 | * @param \Drupal\Core\Language\LanguageManagerInterface $languageManager |
||
78 | * The language manager. |
||
79 | */ |
||
80 | public function __construct(array $configuration, $pluginId, $pluginDefinition, EntityTypeBundleInfo $entityTypeBundleInfo, LanguageManagerInterface $languageManager, EntityTypeManagerInterface $entityTypeManager, EntityRepositoryInterface $entityRepository) { |
||
88 | |||
89 | /** |
||
90 | * {@inheritdoc} |
||
91 | */ |
||
92 | public static function create(ContainerInterface $container, array $configuration, $pluginId, $pluginDefinition) { |
||
103 | |||
104 | /** |
||
105 | * {@inheritdoc} |
||
106 | */ |
||
107 | public function render($row) { |
||
114 | |||
115 | /** |
||
116 | * {@inheritdoc} |
||
117 | */ |
||
118 | protected function getEntityTranslationRenderer() { |
||
125 | |||
126 | /** |
||
127 | * {@inheritdoc} |
||
128 | */ |
||
129 | public function getEntityTypeManager() { |
||
132 | |||
133 | /** |
||
134 | * {@inheritdoc} |
||
135 | */ |
||
136 | public function getEntityRepository() { |
||
139 | |||
140 | /** |
||
141 | * {@inheritdoc} |
||
142 | */ |
||
143 | public function getEntityTypeId() { |
||
150 | |||
151 | /** |
||
152 | * {@inheritdoc} |
||
153 | */ |
||
154 | protected function getEntityTypeBundleInfo() { |
||
157 | |||
158 | /** |
||
159 | * {@inheritdoc} |
||
160 | */ |
||
161 | protected function getLanguageManager() { |
||
164 | |||
165 | /** |
||
166 | * Retrieves the entity object from a result row. |
||
167 | * |
||
168 | * @param \Drupal\Views\ResultRow $row |
||
169 | * The views result row object. |
||
170 | * |
||
171 | * @return null|\Drupal\Core\Entity\EntityInterface |
||
172 | * The extracted entity object or NULL if it could not be retrieved. |
||
173 | */ |
||
174 | protected function getEntityFromRow(ResultRow $row) { |
||
185 | |||
186 | /** |
||
187 | * {@inheritdoc} |
||
188 | */ |
||
189 | protected function getView() { |
||
192 | |||
193 | /** |
||
194 | * {@inheritdoc} |
||
195 | */ |
||
196 | public function query() { |
||
203 | |||
204 | } |
||
205 |
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..