function PageNumber::query in Views PDF 8
This method is used to query data. In our case we want that no data is queried.
File
- src/
Plugin/ views/ style/ PageNumber.php, line 21 - Contains \Drupal\views_pdf\Plugin\views\style\PageNumber.
Class
- PageNumber
- Class that holds the functionality for the page number in a PDF display.
Code
function query() {
// Override parent::query() and don't alter query.
$this->field_alias = 'pdf_page_number_' . $this->position;
}