src/Breadcrumbs.php
public function addBreadcrumbs(array $breadcrumbs = [])
    {
        foreach ($breadcrumbs as $breadcrumb) {
            $this->addCrumb(
                isset($breadcrumb['name']) ? $breadcrumb['name'] : '',
                isset($breadcrumb['href']) ? $breadcrumb['href'] : ''
            );
        }

        return $this;
    }
public function addBreadcrumbs(array $breadcrumbs = [])
    {
        foreach ($breadcrumbs as $breadcrumb) {
            $this->addCrumb(
                isset($breadcrumb['name']) ? $breadcrumb['name'] : '',
                isset($breadcrumb['href']) ? $breadcrumb['href'] : ''
            );
        }

        return $this;
    }
public function addBreadcrumbs ( array $ breadcrumbs = [ ] ) { foreach ( $ breadcrumbs as $ breadcrumb ) { $ this -> addCrumb ( isset ( $ breadcrumb [ 'name' ] ) ? $ breadcrumb [ 'name' ] : '' , isset ( $ breadcrumb [ 'href' ] ) ? $ breadcrumb [ 'href' ] : '' ) ; } return $ this ; }
Add the breadcrumbs to the current list.

@param array $breadcrumbs The breadcrumbs to add to the list.

@throws \InvalidArgumentException When the breadcrumb is not well formated.

@return \Xety\Breadcrumbs\Breadcrumbs
Add the breadcrumbs to the current list .