public function setItemParentAttribute(string $attribute, string $value = '')
    {
        $this->applyToAll(function (HasParentAttributes $item) use ($attribute, $value) {
            $item->setParentAttribute($attribute, $value);
        });

        return $this;
    }
public function setItemParentAttribute(string $attribute, string $value = '')
    {
        $this->applyToAll(function (HasParentAttributes $item) use ($attribute, $value) {
            $item->setParentAttribute($attribute, $value);
        });

        return $this;
    }
public function setItemParentAttribute ( string $ attribute , string $ value = '' ) { $ this -> applyToAll ( function ( HasParentAttributes $ item ) use ( $ attribute , $ value ) { $ item -> setParentAttribute ( $ attribute , $ value ) ; } ) ; return $ this ; }
Add a parent attribute to all items in the menu.

@param string $attribute
@param string $value

@return $this
Add a parent attribute to all items in the menu .