Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
StepsWizard.php
Go to the documentation of this file.
1 <?php
7 
15 {
21  protected $_template = 'Magento_Ui::stepswizard.phtml';
22 
26  protected $initData = [];
27 
31  private $steps;
32 
36  public function getSteps()
37  {
38  if ($this->steps === null) {
39  foreach ($this->getLayout()->getChildBlocks($this->getNameInLayout()) as $step) {
40  if ($step instanceof StepsWizard\StepInterface) {
41  $this->steps[$step->getComponentName()] = $step;
42  }
43  }
44  }
45  return $this->steps;
46  }
47 
48  // @codeCoverageIgnoreStart
49 
53  public function getStepComponents()
54  {
55  return array_keys($this->getSteps());
56  }
57 
61  public function getComponentName()
62  {
63  return $this->getNameInLayout();
64  }
65 
69  public function getInitData()
70  {
71  return $this->initData;
72  }
73 
78  public function setInitData($initData)
79  {
80  $this->initData = $initData;
81 
82  return $this;
83  }
84 }