| | |
| | | 'label' => 'Description', |
| | | ] |
| | | ]; |
| | | if ($this->registrar->args()['hierarchical']??false && $this->registrar->args()['hierarchical'] === true){ |
| | | if ($this->registrar->args()['hierarchical']??false){ |
| | | $fields['parent'] = [ |
| | | 'type' => 'taxonomy', |
| | | 'isReference' => true, |
| | |
| | | |
| | | public function modifyField(string $name, string $property, mixed $value):void |
| | | { |
| | | $property = 'set'.implode('',array_map('ucfirst',explode('_', $property))); |
| | | $field = $this->fields[$name]; |
| | | $field->$property = $value; |
| | | $field->$property($value); |
| | | } |
| | | |
| | | public function getFields():array |