Mercurial > hg > isophonics-drupal-site
annotate core/modules/aggregator/src/AggregatorFeedViewsData.php @ 2:92f882872392
Trusted hosts, + remove migration modules
author | Chris Cannam |
---|---|
date | Tue, 05 Dec 2017 09:26:43 +0000 |
parents | 4c8ae668cc8c |
children |
rev | line source |
---|---|
Chris@0 | 1 <?php |
Chris@0 | 2 |
Chris@0 | 3 namespace Drupal\aggregator; |
Chris@0 | 4 |
Chris@0 | 5 use Drupal\views\EntityViewsData; |
Chris@0 | 6 |
Chris@0 | 7 /** |
Chris@0 | 8 * Provides the views data for the aggregator feed entity type. |
Chris@0 | 9 */ |
Chris@0 | 10 class AggregatorFeedViewsData extends EntityViewsData { |
Chris@0 | 11 |
Chris@0 | 12 /** |
Chris@0 | 13 * {@inheritdoc} |
Chris@0 | 14 */ |
Chris@0 | 15 public function getViewsData() { |
Chris@0 | 16 $data = parent::getViewsData(); |
Chris@0 | 17 |
Chris@0 | 18 $data['aggregator_feed']['table']['join'] = [ |
Chris@0 | 19 'aggregator_item' => [ |
Chris@0 | 20 'left_field' => 'fid', |
Chris@0 | 21 'field' => 'fid', |
Chris@0 | 22 ], |
Chris@0 | 23 ]; |
Chris@0 | 24 |
Chris@0 | 25 $data['aggregator_feed']['fid']['help'] = $this->t('The unique ID of the aggregator feed.'); |
Chris@0 | 26 $data['aggregator_feed']['fid']['argument']['id'] = 'aggregator_fid'; |
Chris@0 | 27 $data['aggregator_feed']['fid']['argument']['name field'] = 'title'; |
Chris@0 | 28 $data['aggregator_feed']['fid']['argument']['numeric'] = TRUE; |
Chris@0 | 29 |
Chris@0 | 30 $data['aggregator_feed']['fid']['filter']['id'] = 'numeric'; |
Chris@0 | 31 |
Chris@0 | 32 $data['aggregator_feed']['title']['help'] = $this->t('The title of the aggregator feed.'); |
Chris@0 | 33 $data['aggregator_feed']['title']['field']['default_formatter'] = 'aggregator_title'; |
Chris@0 | 34 |
Chris@0 | 35 $data['aggregator_feed']['argument']['id'] = 'string'; |
Chris@0 | 36 |
Chris@0 | 37 $data['aggregator_feed']['url']['help'] = $this->t('The fully-qualified URL of the feed.'); |
Chris@0 | 38 |
Chris@0 | 39 $data['aggregator_feed']['link']['help'] = $this->t('The link to the source URL of the feed.'); |
Chris@0 | 40 |
Chris@0 | 41 $data['aggregator_feed']['checked']['help'] = $this->t('The date the feed was last checked for new content.'); |
Chris@0 | 42 |
Chris@0 | 43 $data['aggregator_feed']['description']['help'] = $this->t('The description of the aggregator feed.'); |
Chris@0 | 44 $data['aggregator_feed']['description']['field']['click sortable'] = FALSE; |
Chris@0 | 45 |
Chris@0 | 46 $data['aggregator_feed']['modified']['help'] = $this->t('The date of the most recent new content on the feed.'); |
Chris@0 | 47 |
Chris@0 | 48 return $data; |
Chris@0 | 49 } |
Chris@0 | 50 |
Chris@0 | 51 } |