Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. Breadcrumb.php

function Breadcrumb::addLink

Appends a link to the end of the ordered list of breadcrumb links.

Parameters

\Drupal\Core\Link $link: The link appended to the breadcrumb.

Return value

$this

File

core/lib/Drupal/Core/Breadcrumb/Breadcrumb.php, line 62

Class

Breadcrumb
Used to return generated breadcrumbs with associated cacheability metadata.

Namespace

Drupal\Core\Breadcrumb

Code

public function addLink(Link $link) {
    $this->links[] = $link;
    return $this;
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal