O'Reilly logo

Magento 2 Developer's Guide by Branko Ajzele

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

View elements

Magento's primary view elements are its UI Components, containers, and blocks. The following is a brief overview of each of them.

Ui components

Under the vendor/magento/framework/View/Element/ folder, we can find UiComponentInterface and UiComponentFactory. The full set of Ui components is located under the vendor/magento/framework/View/Element/ directory. Magento implements UiComponent through a separate module called Magento_Ui. Thus, the components themselves are located under the vendor/magento/module-ui/Component/ directory.

Components implement UiComponentInterface, which is defined under the vendor/magento/framework/View/Element/UiComponentInterface.php file as follows:

namespace Magento\Framework\View\Element; use Magento\Framework\View\Element\UiComponent\ContextInterface; ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required