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
framework
View
Element
Text.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\Framework\View\Element
;
7
14
class
Text
extends
\Magento\Framework\View\Element\AbstractBlock
15
{
22
public
function
setText
(
$text
)
23
{
24
$this->
setData
(
'text'
,
$text
);
25
return
$this;
26
}
27
33
public
function
getText
()
34
{
35
return
$this->
getData
(
'text'
);
36
}
37
45
public
function
addText
(
$text
, $before =
false
)
46
{
47
if
($before) {
48
$this->
setText
(
$text
. $this->
getText
());
49
}
else
{
50
$this->
setText
($this->
getText
() .
$text
);
51
}
52
}
53
59
protected
function
_toHtml
()
60
{
61
if
(!$this->
_beforeToHtml
()) {
62
return
''
;
63
}
64
return
$this->
getText
();
65
}
66
}
Magento\Framework\View\Element\Text\getText
getText()
Definition:
Text.php:33
Magento\Framework\View\Element\Text\setText
setText($text)
Definition:
Text.php:22
Magento\Framework\DataObject\getData
getData($key='', $index=null)
Definition:
DataObject.php:119
Magento\Framework\View\Element\AbstractBlock\_beforeToHtml
_beforeToHtml()
Definition:
AbstractBlock.php:639
Magento\Framework\View\Element
Definition:
AbstractBlock.php:6
Magento\Framework\View\Element\AbstractBlock
Definition:
AbstractBlock.php:25
$text
endifif( $block->getLastPageNum()>1)( 'Page') ?></strong >< ul class $text
Definition:
pager.phtml:43
Magento\Framework\View\Element\Text\_toHtml
_toHtml()
Definition:
Text.php:59
Magento\Framework\View\Element\Text\addText
addText($text, $before=false)
Definition:
Text.php:45
Magento\Framework\DataObject\setData
setData($key, $value=null)
Definition:
DataObject.php:72
Magento\Framework\View\Element\Text
Definition:
Text.php:14