Trait luya\web\LinkTrait
Implemented by | luya\admin\file\Item, luya\cms\menu\Item, luya\web\BaseLink, luya\web\EmailLink, luya\web\TelephoneLink, luya\web\WebsiteLink |
---|---|
Available since version | 1.0.0 |
Source Code | https://github.com/luyadev/luya/blob/master/core/web/LinkTrait.php |
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
Method | Description | Defined By |
---|---|---|
__toString() | Return the href string from getHref() when echoing the object. | luya\web\LinkTrait |
Method Details
Return the href string from getHref() when echoing the object.
public void __toString ( ) |
public function __toString()
{
return $this->getHref();
}