Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
DataBuilder.php
Go to the documentation of this file.
1 <?php
11 
13 {
26  protected $_itemsData = [];
27 
36  public function addItemData($label, $value, $count)
37  {
38  $this->_itemsData[] = [
39  'label' => $label,
40  'value' => $value,
41  'count' => $count,
42  ];
43  }
44 
50  public function build()
51  {
53  $this->_itemsData = [];
54  return $result;
55  }
56 }
$count
Definition: recent.phtml:13
$label
Definition: details.phtml:21
$value
Definition: gender.phtml:16