public Breadcrumb::setLinks(array $links)
Sets the breadcrumb links.
\Drupal\Core\Link[] $links: The breadcrumb links.
$this
\LogicException Thrown when setting breadcrumb links after they've already been set.
public function setLinks(array $links) { if (!empty($this->links)) { throw new \LogicException('Once breadcrumb links are set, only additional breadcrumb links can be added.'); } $this->links = $links; return $this; }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Breadcrumb!Breadcrumb.php/function/Breadcrumb::setLinks/8.1.x