You are here

public function DisplayPluginBase::getArgumentText in Views (for Drupal 7) 8.3

Provide some helpful text for the arguments. The result should contain of an array with

  • 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 tiel 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 comes to the display. For example blocks don't get it from url.
1 method overrides DisplayPluginBase::getArgumentText()
Page::getArgumentText in lib/Drupal/views/Plugin/views/display/Page.php
Provide some helpful text for the arguments. The result should contain of an array with

File

lib/Drupal/views/Plugin/views/display/DisplayPluginBase.php, line 2692
Definition of Drupal\views\Plugin\views\display\DisplayPluginBase.

Class

DisplayPluginBase
The default display plugin handler. Display plugins handle options and basic mechanisms for different output methods.

Namespace

Drupal\views\Plugin\views\display

Code

public function getArgumentText() {
  return array(
    'filter value not present' => t('When the filter value is <em>NOT</em> available'),
    'filter value present' => t('When the filter value <em>IS</em> available or a default is provided'),
    'description' => t("This display does not have a source for contextual filters, so no contextual filter value will be available unless you select 'Provide default'."),
  );
}