← All changes
|
modules/atomic-widgets/prop-dependencies/manager.php
+1
-5
4.2.1
→
3.35.0-dev2
View file →
| @@ -35,10 +35,9 @@ | ||
| 35 | 35 | * terms: array{ |
| 36 | 36 | * operator: string, |
| 37 | 37 | * path: array<string>, |
| 38 | 38 | * value?: mixed, |
| 39 | - * newValue?: array, | |
| 40 | - * effect?: 'hide'|'disable' | |
| 39 | + * newValue?: array | |
| 41 | 40 | * } |
| 42 | 41 | * } |
| 43 | 42 | */ |
| 44 | 43 | private ?array $dependencies; |
| @@ -72,9 +71,8 @@ | ||
| 72 | 71 | * operator: string, |
| 73 | 72 | * path: array<string>, |
| 74 | 73 | * value?: mixed, |
| 75 | 74 | * newValue?: array, |
| 76 | - * effect?: 'hide'|'disable' | |
| 77 | 75 | * } |
| 78 | 76 | * @return self |
| 79 | 77 | */ |
| 80 | 78 | public function where( array $config, $new_value = null ): self { |
| @@ -86,9 +84,8 @@ | ||
| 86 | 84 | $term = [ |
| 87 | 85 | 'terms' => $config['terms'], |
| 88 | 86 | 'relation' => $config['relation'] ?? self::RELATION_OR, |
| 89 | 87 | 'newValue' => $new_value ?? null, |
| 90 | - 'effect' => $config['effect'] ?? 'disable', | |
| 91 | 88 | ]; |
| 92 | 89 | $this->dependencies['terms'][] = $term; |
| 93 | 90 | |
| 94 | 91 | return $this; |
| @@ -107,9 +104,8 @@ | ||
| 107 | 104 | 'path' => $config['path'], |
| 108 | 105 | 'nestedPath' => $config['nestedPath'] ?? null, |
| 109 | 106 | 'value' => $config['value'] ?? null, |
| 110 | 107 | 'newValue' => $config['newValue'] ?? null, |
| 111 | - 'effect' => $config['effect'] ?? 'disable', | |
| 112 | 108 | ]; |
| 113 | 109 | |
| 114 | 110 | if ( empty( $this->dependencies ) ) { |
| 115 | 111 | $this->new(); |