public function setListElement($element)
    {
        if (!is_string($element)) {
            throw new \InvalidArgumentException(
                'Breadcrumbs::setListElement() only accepts strings, but '
                . (is_object($element) ? get_class($element) : gettype($element))
                . ' given: ' . print_r($element, true)
            );
        }

        $this->listElement = $element;

        return $this;
    }
public function setListElement($element)
    {
        if (!is_string($element)) {
            throw new \InvalidArgumentException(
                'Breadcrumbs::setListElement() only accepts strings, but '
                . (is_object($element) ? get_class($element) : gettype($element))
                . ' given: ' . print_r($element, true)
            );
        }

        $this->listElement = $element;

        return $this;
    }
public function setListElement ( $ element ) { if ( ! is_string ( $ element ) ) { throw new \ InvalidArgumentException ( 'Breadcrumbs::setListElement() only accepts strings, but ' . ( is_object ( $ element ) ? get_class ( $ element ) : gettype ( $ element ) ) . ' given: ' . print_r ( $ element , true ) ) ; } $ this -> listElement = $ element ; return $ this ; }
Set the containing list DOM element

@param string $element
@return $this
Set the containing list DOM element