Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
|
Public Member Functions | |
testBlockVariableInsteadOfThis () | |
testObsoleteBlockMethods () | |
testObsoleteJavascriptAttributeType () | |
Definition at line 10 of file PhtmlTemplateTest.php.
testBlockVariableInsteadOfThis | ( | ) |
Test usage of methods and variables in template through $this
string | $file |
Definition at line 12 of file PhtmlTemplateTest.php.
testObsoleteBlockMethods | ( | ) |
Test usage of protected and private methods and variables in template
According to naming convention (B5.8, B6.2) all class members in protected or private scope should be prefixed with underscore. Member variables declared "public" should never start with an underscore. Access to protected and private members of Block class is obsolete in phtml templates since introduction of multiple template engines support
string | $file |
Definition at line 33 of file PhtmlTemplateTest.php.
testObsoleteJavascriptAttributeType | ( | ) |
"text/javascript" type attribute in not obligatory to use in templates due to HTML5 standards. For more details please go to "http://www.w3.org/TR/html5/scripting-1.html".
string | $file |
Definition at line 60 of file PhtmlTemplateTest.php.