3 namespace Drupal\redirect;
5 use Drupal\views\EntityViewsData;
8 * Provides views integration for Redirect entities.
10 class RedirectViewsData extends EntityViewsData {
15 public function getViewsData() {
16 $data = parent::getViewsData();
18 // Views defaults to the 'redirect_source' field that is configured as
19 // the redirect label. Since this is a composed field, change the default
20 // field to its 'path' value.
21 $data['redirect']['table']['base']['defaults']['field'] = 'redirect_source__path';