Framework/Form/Element/Url.php
function getElementHtml() {return df_tag('div', ['class' => 'df-url', 'id' => $this->getId()],
		$this->thirdPartyLocalhost() ? $this->messageForThirdPartyLocalhost() : $this->messageForOthers()
	);}
function getElementHtml() {return df_tag('div', ['class' => 'df-url', 'id' => $this->getId()],
		$this->thirdPartyLocalhost() ? $this->messageForThirdPartyLocalhost() : $this->messageForOthers()
	);}
function getElementHtml ( ) { return df_tag ( 'div' , [ 'class' => 'df-url' , 'id' => $ this -> getId ( ) ] , $ this -> thirdPartyLocalhost ( ) ? $ this -> messageForThirdPartyLocalhost ( ) : $ this -> messageForOthers ( ) ) ; }
2016-05-30
2016-06-07
@final Unable to use the PHP «final» keyword here because of the M2 code generation.
'id' => $this->getId() нужно для совместимости с 2.0.6,
иначе там сбой в выражении inputs = $(idTo).up(this._config.levels_up)
https://mail.google.com/mail/u/0/#search/maged%40wrapco.com.au/15510135c446afdb
@override
@see \Magento\Framework\Data\Form\Element\AbstractElement::getElementHtml()
@used-by \Magento\Framework\Data\Form\Element\AbstractElement::getDefaultHtml():
public function getDefaultHtml() {
$html = $this->getData('default_html');
if ($html === null) {
$html = $this->getNoSpan() === true ? '' : '<div class="admin__field">' . "\n";
$html .= $this->getLabelHtml();
$html .= $this->getElementHtml();
$html .= $this->getNoSpan() === true ? '' : '</div>' . "\n";
}
return $html;
}
https://github.com/magento/magento2/blob/2.2.0-RC1.8/lib/internal/Magento/Framework/Data/Form/Element/AbstractElement.php#L426-L441
@return string
2016 - 05 - 30 2016 - 06 - 07