<?php namespace Drupal\cfp_payment_request\Entity; use Drupal\views\EntityViewsData; /** * Provides Views data for Payment request entities. */ class PaymentRequestViewsData extends EntityViewsData { /** * {@inheritdoc} */ public function getViewsData() { $data = parent::getViewsData(); $data['cfp_payment_request']['correction_deadline']['filter']['id'] = 'pr_correction_deadline'; return $data; } }