public function toArray()
    {
        return [
            'name' => $this->name,
            'title' => $this->title,
            'type' => $this->type,
            'value' => $this->value,
            'attributes' => $this->getAttributesData(),
        ];
    }
public function toArray()
    {
        return [
            'name' => $this->name,
            'title' => $this->title,
            'type' => $this->type,
            'value' => $this->value,
            'attributes' => $this->getAttributesData(),
        ];
    }
public function toArray ( ) { return [ 'name' => $ this -> name , 'title' => $ this -> title , 'type' => $ this -> type , 'value' => $ this -> value , 'attributes' => $ this -> getAttributesData ( ) , ] ; }
Gets all field data in an array.

@return array
Gets all field data in an array .