You are here

function IndexTid::set_breadcrumb in Views (for Drupal 7) 8.3

Give an argument the opportunity to modify the breadcrumb, if it wants. This only gets called on displays where a breadcrumb is actually used.

The breadcrumb will be in the form of an array, with the keys being the path and the value being the already sanitized title of the path.

Overrides ArgumentPluginBase::set_breadcrumb

File

lib/Views/taxonomy/Plugin/views/argument/IndexTid.php, line 41
Definition of Views\taxonomy\Plugin\views\argument\IndexTid.

Class

IndexTid
Allow taxonomy term ID(s) as argument.

Namespace

Views\taxonomy\Plugin\views\argument

Code

function set_breadcrumb(&$breadcrumb) {
  if (empty($this->options['set_breadcrumb']) || !is_numeric($this->argument)) {
    return;
  }
  return views_taxonomy_set_breadcrumb($breadcrumb, $this);
}