Mercurial > hg > isophonics-drupal-site
comparison core/modules/comment/src/CommentViewsData.php @ 17:129ea1e6d783
Update, including to Drupal core 8.6.10
author | Chris Cannam |
---|---|
date | Thu, 28 Feb 2019 13:21:36 +0000 |
parents | 4c8ae668cc8c |
children |
comparison
equal
deleted
inserted
replaced
16:c2387f117808 | 17:129ea1e6d783 |
---|---|
212 'label' => $entity_type->getLabel(), | 212 'label' => $entity_type->getLabel(), |
213 'extra' => [ | 213 'extra' => [ |
214 [ | 214 [ |
215 'field' => 'entity_type', | 215 'field' => 'entity_type', |
216 'value' => $type, | 216 'value' => $type, |
217 'table' => 'comment_field_data' | 217 'table' => 'comment_field_data', |
218 ], | 218 ], |
219 ], | 219 ], |
220 ], | 220 ], |
221 ]; | 221 ]; |
222 } | 222 } |
233 $data['comment_field_data']['pid']['relationship']['help'] = $this->t('The parent comment'); | 233 $data['comment_field_data']['pid']['relationship']['help'] = $this->t('The parent comment'); |
234 $data['comment_field_data']['pid']['relationship']['label'] = $this->t('parent'); | 234 $data['comment_field_data']['pid']['relationship']['label'] = $this->t('parent'); |
235 | 235 |
236 // Define the base group of this table. Fields that don't have a group defined | 236 // Define the base group of this table. Fields that don't have a group defined |
237 // will go into this field by default. | 237 // will go into this field by default. |
238 $data['comment_entity_statistics']['table']['group'] = $this->t('Comment Statistics'); | 238 $data['comment_entity_statistics']['table']['group'] = $this->t('Comment Statistics'); |
239 | 239 |
240 // Provide a relationship for each entity type except comment. | 240 // Provide a relationship for each entity type except comment. |
241 foreach ($entities_types as $type => $entity_type) { | 241 foreach ($entities_types as $type => $entity_type) { |
242 if ($type == 'comment' || !$entity_type->entityClassImplements(ContentEntityInterface::class) || !$entity_type->getBaseTable()) { | 242 if ($type == 'comment' || !$entity_type->entityClassImplements(ContentEntityInterface::class) || !$entity_type->getBaseTable()) { |
243 continue; | 243 continue; |