You are here

protected function OAIPMH::defineOptions in Views OAI-PMH 8

Overrides \Drupal\views\Plugin\views\display\DisplayPluginBase:defineOptions().

Overrides PathPluginBase::defineOptions

File

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

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

protected function defineOptions() {
  $options = parent::defineOptions();

  // Set the default style plugin to 'json'.
  $options['style']['contains']['type']['default'] = 'views_oai_pmh_record';
  $options['defaults']['default']['style'] = FALSE;
  $options['defaults']['default']['row'] = FALSE;

  // Remove css/exposed form settings, as they are not used for the data display.
  unset($options['exposed_form']);
  unset($options['exposed_block']);
  unset($options['css_class']);
  return $options;
}