Your IP : 216.73.216.220


Current Path : /var/www/html/vendor/magento/module-ui/Block/Component/StepsWizard/
Upload File :
Current File : /var/www/html/vendor/magento/module-ui/Block/Component/StepsWizard/StepAbstract.php

<?php
/**
 * Copyright © Magento, Inc. All rights reserved.
 * See COPYING.txt for license details.
 */
namespace Magento\Ui\Block\Component\StepsWizard;

/**
 * Abstract block for multi-step wizard UI
 */
abstract class StepAbstract extends \Magento\Framework\View\Element\Template implements StepInterface
{
    /**
     * @inheritdoc
     */
    public function getContent()
    {
        return $this->toHtml();
    }

    /**
     * @inheritdoc
     */
    public function getParentComponentName()
    {
        return $this->getParentBlock()->getComponentName();
    }

    /**
     * @inheritdoc
     */
    public function getComponentName()
    {
        if (null === $this->getData('component_name')) {
            $this->setData('component_name', $this->getParentComponentName() . '_' . $this->getNameInLayout());
        }
        return $this->getData('component_name');
    }
}