- public function modifyMeta(array $meta)
- {
- if ($groupCode = $this->getGroupCodeByField($meta, 'container_' . self::CODE_QUANTITY_AND_STOCK_STATUS)) {
- $parentChildren = &$meta[$groupCode]['children'];
- if (!empty($parentChildren['container_' . self::CODE_QUANTITY_AND_STOCK_STATUS])) {
- $parentChildren['container_' . self::CODE_QUANTITY_AND_STOCK_STATUS] = array_replace_recursive(
- $parentChildren['container_' . self::CODE_QUANTITY_AND_STOCK_STATUS],
- [
- 'children' => [
- self::CODE_QUANTITY_AND_STOCK_STATUS => [
- 'arguments' => [
- 'data' => [
- 'config' => ['disabled' => false],
- ],
- ],
- ],
- ]
- ]
- );
- }
- }
-
- if ($groupCode = $this->getGroupCodeByField($meta, self::CODE_QTY_CONTAINER)) {
- $parentChildren = &$meta[$groupCode]['children'];
- if (!empty($parentChildren[self::CODE_QTY_CONTAINER])) {
- $parentChildren[self::CODE_QTY_CONTAINER] = array_replace_recursive(
- $parentChildren[self::CODE_QTY_CONTAINER],
- [
- 'children' => [
- self::CODE_QUANTITY => [
- 'arguments' => [
- 'data' => [
- 'config' => ['disabled' => true],
- ],
- ],
- ],
- ],
- ]
- );
- }
- }
-
- return $meta;
- }