OAuth/FE/Button.php
function getCommentText($v) {return (string)__($this->s()->authenticatedB()
		? "<b>Your Magento instance is <span class='df-ok'>successfully authenticated</span> to your %1 instance.</b>"
		: "<b>You <span class='df-warning'>need to authenticate</span> your Magento instance to your %1 instance.</b>"
	,df_api_name($this->m()));}
function getCommentText($v) {return (string)__($this->s()->authenticatedB()
		? "<b>Your Magento instance is <span class='df-ok'>successfully authenticated</span> to your %1 instance.</b>"
		: "<b>You <span class='df-warning'>need to authenticate</span> your Magento instance to your %1 instance.</b>"
	,df_api_name($this->m()));}
function getCommentText ( $ v ) { return ( string ) __ ( $ this -> s ( ) -> authenticatedB ( ) ? "<b>Your Magento instance is <span class='df-ok'>successfully authenticated</span> to your %1 instance.</b>" : "<b>You <span class='df-warning'>need to authenticate</span> your Magento instance to your %1 instance.</b>" , df_api_name ( $ this -> m ( ) ) ) ; }
2017-06-29
@final Unable to use the PHP «final» keyword here because of the M2 code generation.
«How to implement a dynamically generated comment for a backend configuration field?»
https://mage2.pro/t/4076
@override
@see IComment::getCommentText()
@used-by \Magento\Config\Model\Config\Structure\Element\Field::getComment():
public function getComment($currentValue = '') {
$comment = '';
if (isset($this->_data['comment']) && $this->_data['comment']) {
if (is_array($this->_data['comment'])) {
if (isset($this->_data['comment']['model'])) {
$model = $this->_commentFactory->create($this->_data['comment']['model']);
$comment = $model->getCommentText($currentValue);
}
}
else {
$comment = parent::getComment();
}
}
return $comment;
}
https://github.com/magento/magento2/blob/2.2.0-RC1.8/app/code/Magento/Config/Model/Config/Structure/Element/Field.php#L106-L126
@param string $v
@return string
2017 - 06 - 29