You are here

function PageBreak::query in Views PDF 8

This method is used to query data. In our case we want that no data is queried.

Overrides StylePluginBase::query

File

src/Plugin/views/style/PageBreak.php, line 26
Contains \Drupal\views_pdf\Plugin\views\style\PageBreak.

Class

PageBreak
Class that holds the functionality for the page break in a PDF display.

Code

function query() {

  // Override parent::query() and don't alter query.
  $this->field_alias = 'pdf_page_break_' . $this->position;
}