Magento Extensions Rating 2024
EXTENSIONS BY CATEGORY
B2B (Business-To-Business)
Blog
Customer
ERP (Enterprise Resource Planning)
Mega Menu
One Step Checkout
Order
POS (Point Of Sale)
Search
Shopping Cart
Sitemap
SEO
Social
Stock & Inventory Management
EXTENSIONS BY DEVELOPER
aheadWorks
Amasty
Boost My Shop
BSS Commerce
Magestore
MageWorx
Mirasvit
Templates Master
Wyomind
XTENTO
Magento 2 Documentation
Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
vendor
magento
module-backend
Block
Widget
Breadcrumbs.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\Backend\Block\Widget
;
7
15
class
Breadcrumbs
extends
\Magento\Backend\Block\Template
16
{
22
protected
$_links
= [];
23
27
protected
$_template
=
'Magento_Backend::widget/breadcrumbs.phtml'
;
28
32
protected
function
_construct
()
33
{
34
$this->
addLink
(
__
(
'Home'
),
__
(
'Home'
), $this->
getUrl
(
'*'
));
35
}
36
43
public
function
addLink
(
$label
,
$title
=
null
,
$url
=
null
)
44
{
45
if
(empty(
$title
)) {
46
$title
=
$label
;
47
}
48
$this->_links[] = [
'label'
=>
$label
,
'title'
=>
$title
,
'url'
=>
$url
];
49
return
$this;
50
}
51
55
protected
function
_beforeToHtml
()
56
{
57
// TODO - Moved to Beta 2, no breadcrumbs displaying in Beta 1
58
// $this->assign('links', $this->_links);
59
return
parent::_beforeToHtml();
60
}
61
}
Magento\Backend\Block\Widget
Definition:
ContainerTest.php:6
$title
$title
Definition:
default.phtml:14
$url
$url
Definition:
query_redirect.php:14
Magento\Backend\Block\Template
Definition:
Template.php:33
Magento\Backend\Block\Widget\Breadcrumbs
Definition:
Breadcrumbs.php:15
__
__()
Definition:
__.php:13
Magento\Backend\Block\Widget\Breadcrumbs\_construct
_construct()
Definition:
Breadcrumbs.php:32
$label
$label
Definition:
details.phtml:21
Magento\Framework\View\Element\AbstractBlock\getUrl
getUrl($route='', $params=[])
Definition:
AbstractBlock.php:773
Magento\Backend\Block\Widget\Breadcrumbs\$_links
$_links
Definition:
Breadcrumbs.php:22
Magento\Backend\Block\Widget\Breadcrumbs\_beforeToHtml
_beforeToHtml()
Definition:
Breadcrumbs.php:55
Magento\Backend\Block\Widget\Breadcrumbs\$_template
$_template
Definition:
Breadcrumbs.php:27
Magento\Backend\Block\Widget\Breadcrumbs\addLink
addLink($label, $title=null, $url=null)
Definition:
Breadcrumbs.php:43