You are here

protected function SimpleSitemapDisplayExtender::getArgumentsOptions in Simple XML sitemap (Views integration) 8

Returns available view arguments options.

Return value

array View arguments labels keyed by argument ID.

1 call to SimpleSitemapDisplayExtender::getArgumentsOptions()
SimpleSitemapDisplayExtender::buildOptionsForm in src/Plugin/views/display_extender/SimpleSitemapDisplayExtender.php
Provide a form to edit options for this plugin.

File

src/Plugin/views/display_extender/SimpleSitemapDisplayExtender.php, line 303
Contains Simple XML Sitemap display extender.

Class

SimpleSitemapDisplayExtender
Simple XML Sitemap display extender plugin.

Namespace

Drupal\simple_sitemap_views\Plugin\views\display_extender

Code

protected function getArgumentsOptions() {
  $arguments_options = [];

  // Get view argument handlers.
  $arguments = $this->displayHandler
    ->getHandlers('argument');

  /** @var \Drupal\views\Plugin\views\argument\ArgumentPluginBase $argument */
  foreach ($arguments as $id => $argument) {
    $arguments_options[$id] = $argument
      ->adminLabel();
  }
  return $arguments_options;
}