function disqus_field_views_data in Disqus 8
Implements hook_field_views_data().
File
- ./
disqus.module, line 225 - The Disqus Drupal module.
Code
function disqus_field_views_data(FieldStorageConfigInterface $field_storage) {
$data = views_field_default_views_data($field_storage);
foreach ($data as $table_name => $table_data) {
$data[$table_name]['entity_id']['field'] = [
'title' => t('Disqus Comment Count'),
'group' => t('Content'),
'help' => t('The number of Disqus comments made on the post. Note that this will not work in the preview.'),
'id' => 'disqus_comment_count',
];
}
return $data;
}