How is the frontend logo block implemented?

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:

getLogoHeigjht() for the logo’s height:

getLogoSrc() for the logo’s image (src attribute):

getLogoAlt() for the logo’s alternative text (alt attribute):

See also:

What would be the best way to go about changing this value?

How to change template for a standard block using layout directive action method=‘setTemplate’

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?