You are here

protected function SimpleSitemapDisplayExtender::getArgumentsOptions in Simple XML sitemap 8.3

Same name and namespace in other branches
  1. 4.x modules/simple_sitemap_views/src/Plugin/views/display_extender/SimpleSitemapDisplayExtender.php \Drupal\simple_sitemap_views\Plugin\views\display_extender\SimpleSitemapDisplayExtender::getArgumentsOptions()

Returns available view arguments options.

Return value

array View arguments labels keyed by argument ID.

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

File

modules/simple_sitemap_views/src/Plugin/views/display_extender/SimpleSitemapDisplayExtender.php, line 370

Class

SimpleSitemapDisplayExtender
Simple XML Sitemap display extender plugin.

Namespace

Drupal\simple_sitemap_views\Plugin\views\display_extender

Code

protected function getArgumentsOptions() {
  $arguments = $this->displayHandler
    ->getHandlers('argument');
  $arguments_options = [];

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