Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
ArraySerialized.php
Go to the documentation of this file.
1 <?php
12 
17 class ArraySerialized extends \Magento\Config\Model\Config\Backend\Serialized
18 {
24  public function beforeSave()
25  {
26  $value = $this->getValue();
27  if (is_array($value)) {
28  unset($value['__empty']);
29  }
30  $this->setValue($value);
31  return parent::beforeSave();
32  }
33 }
$value
Definition: gender.phtml:16