You are here

function Unformatted::attach_to in Views PDF 8

Attach this view to another display as a feed.

Provide basic functionality for all export style views like attaching a feed image link.

File

src/Plugin/views/style/Unformatted.php, line 89
Contains \Drupal\views_pdf\Plugin\views\style\Unformatted.

Class

Unformatted
This class holds all the funtionality used for the unformatted style plugin.

Namespace

Drupal\views_pdf\Plugin\views\style

Code

function attach_to($display_id, $path, $title) {
  $display = $this->view->display[$display_id]->handler;
  $url_options = array();
  $input = $this->view
    ->get_exposed_input();
  if ($input) {
    $url_options['query'] = $input;
  }
  if (empty($this->view->feed_icon)) {
    $this->view->feed_icon = '';
  }
  $this->view->feed_icon .= theme('views_pdf_icon', array(
    'path' => $this->view
      ->get_url(NULL, $path),
    'title' => $title,
    'options' => $url_options,
  ));
}