public function IndexTidDepth::setBreadcrumb

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::setBreadcrumb

File

drupal/core/modules/taxonomy/lib/Drupal/taxonomy/Plugin/views/argument/IndexTidDepth.php, line 72
Definition of Drupal\taxonomy\Plugin\views\argument\IndexTidDepth.

Class

IndexTidDepth
Argument handler for taxonomy terms with depth.

Namespace

Drupal\taxonomy\Plugin\views\argument

Code

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