BrokenLinkViewsData.php in Broken Link 8.3
File
src/BrokenLinkViewsData.php
View source
<?php
namespace Drupal\broken_link;
use Drupal\views\EntityViewsData;
class BrokenLinkViewsData extends EntityViewsData {
public function getViewsData() {
$data = parent::getViewsData();
$data['broken_link']['table']['base']['help'] = $this
->t('Broken Links');
$data['broken_link']['table']['base']['access query tag'] = 'manage broken link list';
$data['broken_link']['table']['wizard_id'] = 'broken_link';
$data['broken_link']['table']['group'] = t('Broken links');
$data['broken_link__referers']['referers']['filter'] = [
'real field' => 'referers_value',
'id' => 'string',
];
$data['broken_link__query_string']['query_string']['filter']['real field'] = 'query_string_value';
$data['broken_link__referers']['referers']['sort'] = [
'real field' => 'referers_value',
'id' => 'string',
];
$data['broken_link__query_string']['query_string']['sort']['real field'] = 'query_string_value';
return $data;
}
}