public function getAttributes()
    {
        $attributes = parent::getAttributes();

        $attributes['data-schema'] = json_encode($this->getSchemaData());
        $attributes['data-state'] = json_encode($this->getSchemaState());

        return $attributes;
    }
public function getAttributes()
    {
        $attributes = parent::getAttributes();

        $attributes['data-schema'] = json_encode($this->getSchemaData());
        $attributes['data-state'] = json_encode($this->getSchemaState());

        return $attributes;
    }
public function getAttributes ( ) { $ attributes = parent :: getAttributes ( ) ; $ attributes [ 'data-schema' ] = json_encode ( $ this -> getSchemaData ( ) ) ; $ attributes [ 'data-state' ] = json_encode ( $ this -> getSchemaState ( ) ) ; return $ attributes ; }
When not used in a React form factory context, this adds the schema and state data to SilverStripe
template rendered attributes lists

@return array
When not used in a React form factory context this adds the schema and state data to SilverStripe template rendered attributes lists