getLayout()->createBlock('Magento\Customer\Block\Widget\Name') ->setObject($block->getAddress()) ->toHtml() ?> For checkout/onepage/shipping.phtml: getLayout()->createBlock('Magento\Customer\Block\Widget\Name') ->setObject($block->getAddress()) ->setFieldIdFormat('shipping:%s') ->setFieldNameFormat('shipping[%s]') ->setFieldParams('onchange="shipping.setSameAsBilling(false);"') ->toHtml() ?> */ /* @var $block \Magento\Customer\Block\Widget\Name */ $prefix = $block->showPrefix(); $middle = $block->showMiddlename(); $suffix = $block->showSuffix(); ?> getNoWrap()): ?>
getPrefixOptions() === false): ?> getFieldParams() ?> isPrefixRequired()) echo ' data-validate="{required:true}"' ?>>
getFieldParams() ?> getAttributeValidationClass('firstname') == 'required-entry') echo ' data-validate="{required:true}"' ?>>
isMiddlenameRequired(); ?>
getFieldParams() ?> >
getFieldParams() ?> getAttributeValidationClass('lastname') == 'required-entry') echo ' data-validate="{required:true}"' ?>>
getSuffixOptions() === false): ?> getFieldParams() ?> isSuffixRequired()) echo ' data-validate="{required:true}"' ?>>
getNoWrap()): ?>