Piwik\Plugins\ExampleReport\Reports\GetExampleReport::configureView PHP Method

configureView() public method

Here you can configure how your report should be displayed. For instance whether your report supports a search etc. You can also change the default request config. For instance change how many rows are displayed by default.
public configureView ( ViewDataTable $view )
$view Piwik\Plugin\ViewDataTable
    public function configureView(ViewDataTable $view)
    {
        if (!empty($this->dimension)) {
            $view->config->addTranslations(array('label' => $this->dimension->getName()));
        }
        // $view->config->show_search = false;
        // $view->requestConfig->filter_sort_column = 'nb_visits';
        // $view->requestConfig->filter_limit = 10';
        $view->config->columns_to_display = array_merge(array('label'), $this->metrics);
    }