src/StringTagField.php
public function getSchemaDataDefaults()
    {
        $schema = array_merge(
            parent::getSchemaDataDefaults(),
            [
                'name' => $this->getName() . '[]',
                'lazyLoad' => $this->getShouldLazyLoad(),
                'creatable' => $this->getCanCreate(),
                'multi' => $this->getIsMultiple(),
                'value' => $this->formatOptions($this->Value()),
                'disabled' => $this->isDisabled() || $this->isReadonly(),
            ]
        );

        if (!$this->getShouldLazyLoad()) {
            $schema['options'] = $this->getOptions()->toNestedArray();
        } else {
            $schema['optionUrl'] = $this->getSuggestURL();
        }

        return $schema;
    }
public function getSchemaDataDefaults()
    {
        $schema = array_merge(
            parent::getSchemaDataDefaults(),
            [
                'name' => $this->getName() . '[]',
                'lazyLoad' => $this->getShouldLazyLoad(),
                'creatable' => $this->getCanCreate(),
                'multi' => $this->getIsMultiple(),
                'value' => $this->formatOptions($this->Value()),
                'disabled' => $this->isDisabled() || $this->isReadonly(),
            ]
        );

        if (!$this->getShouldLazyLoad()) {
            $schema['options'] = $this->getOptions()->toNestedArray();
        } else {
            $schema['optionUrl'] = $this->getSuggestURL();
        }

        return $schema;
    }
public function getSchemaDataDefaults ( ) { $ schema = array_merge ( parent :: getSchemaDataDefaults ( ) , [ 'name' => $ this -> getName ( ) . '[]' , 'lazyLoad' => $ this -> getShouldLazyLoad ( ) , 'creatable' => $ this -> getCanCreate ( ) , 'multi' => $ this -> getIsMultiple ( ) , 'value' => $ this -> formatOptions ( $ this -> Value ( ) ) , 'disabled' => $ this -> isDisabled ( ) || $ this -> isReadonly ( ) , ] ) ; if ( ! $ this -> getShouldLazyLoad ( ) ) { $ schema [ 'options' ] = $ this -> getOptions ( ) -> toNestedArray ( ) ; } else { $ schema [ 'optionUrl' ] = $ this -> getSuggestURL ( ) ; } return $ schema ; }
Provide TagField data to the JSON schema for the frontend component

@return array
Provide TagField data to the JSON schema for the frontend component