Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Label.php
Go to the documentation of this file.
1 <?php
7 
9 {
16  public function getLabelsCollection($label = false)
17  {
18  $options = parent::getLabelsCollection();
19  if ($label) {
20  array_unshift($options, ['value' => 0, 'label' => $label]);
21  }
22  return $options;
23  }
24 }
$label
Definition: details.phtml:21