The frontend logo is implemented by the \Magento\Theme\Block\Html\Header\Logo
class:
The standard Luma design theme adjusts the default width and height for the logo:
The logo block uses the html/header/logo.phtml
template:
The template uses the following \Magento\Theme\Block\Html\Header\Logo
instance methods:
getLogoWidth() for the logo’s width:
/**
* Retrieve logo width
*
* @return int
*/
public function getLogoWidth()
{
if (empty($this->_data['logo_width'])) {
$this->_data['logo_width'] = $this->_scopeConfig->getValue(
'design/header/logo_width',
\Magento\Store\Model\ScopeInterface::SCOPE_STORE
);
}
return (int)$this->_data['logo_width'] ? : (int)$this->getLogoImgWidth();
}
getLogoHeigjht() for the logo’s height:
/**
* Retrieve logo height
*
* @return int
*/
public function getLogoHeight()
{
if (empty($this->_data['logo_height'])) {
$this->_data['logo_height'] = $this->_scopeConfig->getValue(
'design/header/logo_height',
\Magento\Store\Model\ScopeInterface::SCOPE_STORE
);
}
return (int)$this->_data['logo_height'] ? : (int)$this->getLogoImgHeight();
}
getLogoSrc() for the logo’s image (src
attribute):
getLogoAlt() for the logo’s alternative text (alt
attribute):
What would be the best way to go about changing this value?
Thanks but I am unable to do it that way with namespace Magento\Bundle\Block\Adminhtml\Catalog\Product\Edit\Tab\Bundle; class Option; because it isn’t referenced in the xml layout files that I can find.
Edit since I can’t post again: I guess this would be unrelated to this article. Sorry for wasting your time with discussion.
How is exactly the "Magento\Bundle\Block\Adminhtml\Catalog\Product\Edit\Tab\Bundle; class Option; " related to the How is the frontend logo block implemented? article?