TabsView::class, 'single' => SingleView::class, 'single-resource' => SingleResourceView::class ]; private $wordsCount; public function __construct() { parent::__construct(); $this->setFilters(); } protected function setFilters() { $this->filters = FilterGenerator::create() ->dropdown('qp', [ 'label' => esc_html__('Query Parameter', 'wp-statistics'), 'panel' => true, 'searchable' => true, 'attributes' => [ 'data-type' => 'query-params', 'data-source' => 'getQueryParameters', ], ]) ->get(); return $this->filters; } protected function init() { $this->wordsCount = new WordCountService(); $this->disableScreenOption(); } }