You are here

public function Page::getArgumentText in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/views/src/Plugin/views/display/Page.php \Drupal\views\Plugin\views\display\Page::getArgumentText()

Provides help text for the arguments.

Return value

array Returns an array which contains text for the argument fieldset:

  • filter value present: The title of the fieldset in the argument where you can configure what should be done with a given argument.
  • filter value not present: The title of the fieldset in the argument where you can configure what should be done if the argument does not exist.
  • description: A description about how arguments are passed to the display. For example blocks can't get arguments from url.

Overrides DisplayPluginBase::getArgumentText

File

core/modules/views/src/Plugin/views/display/Page.php, line 513
Contains \Drupal\views\Plugin\views\display\Page.

Class

Page
The plugin that handles a full page.

Namespace

Drupal\views\Plugin\views\display

Code

public function getArgumentText() {
  return array(
    'filter value not present' => $this
      ->t('When the filter value is <em>NOT</em> in the URL'),
    'filter value present' => $this
      ->t('When the filter value <em>IS</em> in the URL or a default is provided'),
    'description' => $this
      ->t('The contextual filter values are provided by the URL.'),
  );
}