| Current Path : /var/www/clients/client3/web2/web/vendor/magento/module-url-rewrite/Block/ |
| Current File : /var/www/clients/client3/web2/web/vendor/magento/module-url-rewrite/Block/Link.php |
<?php
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
/**
* Label & link block
*
* @method string getLabel()
* @method string getItemUrl()
* @method string getItemName()
*/
namespace Magento\UrlRewrite\Block;
class Link extends \Magento\Framework\View\Element\AbstractBlock
{
/**
* Render output
*
* @return string
*/
protected function _toHtml()
{
return '<p>' . $this->getLabel() . ' <a href="' . $this->getItemUrl() . '">' . $this->escapeHtml(
$this->getItemName()
) . '</a></p>';
}
}