/** * @param $data * @return static */ public static function __set_state($data) { $obj = parent::__set_state($data); $options = $obj->getOptions(); if (\Pimcore::inAdmin() || empty($options)) { $obj->configureOptions(); } return $obj; }
/** * @param $data * @return static */ public static function __set_state($data) { $obj = parent::__set_state($data); $obj->configureOptions(); return $obj; }