comparison core/modules/node/src/NodeViewsData.php @ 17:129ea1e6d783

Update, including to Drupal core 8.6.10
author Chris Cannam
date Thu, 28 Feb 2019 13:21:36 +0000
parents 1fec387a4317
children af1871eacc83
comparison
equal deleted inserted replaced
16:c2387f117808 17:129ea1e6d783
214 $data['node_field_revision']['nid']['relationship']['id'] = 'standard'; 214 $data['node_field_revision']['nid']['relationship']['id'] = 'standard';
215 $data['node_field_revision']['nid']['relationship']['base'] = 'node_field_data'; 215 $data['node_field_revision']['nid']['relationship']['base'] = 'node_field_data';
216 $data['node_field_revision']['nid']['relationship']['base field'] = 'nid'; 216 $data['node_field_revision']['nid']['relationship']['base field'] = 'nid';
217 $data['node_field_revision']['nid']['relationship']['title'] = $this->t('Content'); 217 $data['node_field_revision']['nid']['relationship']['title'] = $this->t('Content');
218 $data['node_field_revision']['nid']['relationship']['label'] = $this->t('Get the actual content from a content revision.'); 218 $data['node_field_revision']['nid']['relationship']['label'] = $this->t('Get the actual content from a content revision.');
219 $data['node_field_revision']['nid']['relationship']['extra'][] = [
220 'field' => 'langcode',
221 'left_field' => 'langcode',
222 ];
219 223
220 $data['node_field_revision']['vid'] = [ 224 $data['node_field_revision']['vid'] = [
221 'argument' => [ 225 'argument' => [
222 'id' => 'node_vid', 226 'id' => 'node_vid',
223 'numeric' => TRUE, 227 'numeric' => TRUE,
226 'id' => 'standard', 230 'id' => 'standard',
227 'base' => 'node_field_data', 231 'base' => 'node_field_data',
228 'base field' => 'vid', 232 'base field' => 'vid',
229 'title' => $this->t('Content'), 233 'title' => $this->t('Content'),
230 'label' => $this->t('Get the actual content from a content revision.'), 234 'label' => $this->t('Get the actual content from a content revision.'),
235 'extra' => [
236 [
237 'field' => 'langcode',
238 'left_field' => 'langcode',
239 ],
240 ],
231 ], 241 ],
232 ] + $data['node_field_revision']['vid']; 242 ] + $data['node_field_revision']['vid'];
233 243
234 $data['node_field_revision']['langcode']['help'] = $this->t('The language the original content is in.'); 244 $data['node_field_revision']['langcode']['help'] = $this->t('The language the original content is in.');
235 245
278 ], 288 ],
279 ]; 289 ];
280 290
281 // Define the base group of this table. Fields that don't have a group defined 291 // Define the base group of this table. Fields that don't have a group defined
282 // will go into this field by default. 292 // will go into this field by default.
283 $data['node_access']['table']['group'] = $this->t('Content access'); 293 $data['node_access']['table']['group'] = $this->t('Content access');
284 294
285 // For other base tables, explain how we join. 295 // For other base tables, explain how we join.
286 $data['node_access']['table']['join'] = [ 296 $data['node_access']['table']['join'] = [
287 'node_field_data' => [ 297 'node_field_data' => [
288 'left_field' => 'nid', 298 'left_field' => 'nid',
320 'node_field_data' => [ 330 'node_field_data' => [
321 'left_field' => 'nid', 331 'left_field' => 'nid',
322 'field' => 'sid', 332 'field' => 'sid',
323 'table' => 'search_index', 333 'table' => 'search_index',
324 'extra' => "node_search_index.type = 'node_search' AND node_search_index.langcode = node_field_data.langcode", 334 'extra' => "node_search_index.type = 'node_search' AND node_search_index.langcode = node_field_data.langcode",
325 ] 335 ],
326 ]; 336 ];
327 337
328 $data['node_search_total']['table']['join'] = [ 338 $data['node_search_total']['table']['join'] = [
329 'node_search_index' => [ 339 'node_search_index' => [
330 'left_field' => 'word', 340 'left_field' => 'word',