You are here

public function OAIPMH::execute in Views OAI-PMH 8

Executes the view and returns data in the format required.

The base class cannot be executed.

Overrides PathPluginBase::execute

File

src/Plugin/views/display/OAIPMH.php, line 173

Class

OAIPMH
Plugin annotation @ViewsDisplay( id = "views_oai_pmh_display", title = @Translation("OAI-PMH Views"), help = @Translation("Provide a feed using the OAI-PMH protocol."), uses_route = TRUE, admin = @Translation("OAI-PMH Views"), …

Namespace

Drupal\views_oai_pmh\Plugin\views\display

Code

public function execute() {
  $this->view
    ->setCurrentPage($this
    ->pageByResumptionToken());
  parent::execute();
  return $this->view
    ->render();
}