Trait luya\web\LinkTrait

Implemented byluya\admin\file\Item, luya\cms\menu\Item, luya\web\BaseLink, luya\web\EmailLink, luya\web\TelephoneLink, luya\web\WebsiteLink
Available since version1.0.0

Link resources Trait Integrator.

Implementation of this trait will allow to echo the object in order to return the href of the link.

Public Methods

Hide inherited methods

Method Description Defined By
__toString() Return the href string from getHref() when echoing the object. luya\web\LinkTrait

Method Details

Hide inherited methods

__toString() public method

Return the href string from getHref() when echoing the object.

public void __toString ( )

                public function __toString()
{
    return $this->getHref();
}