src/Model/Package.php
public function getDataSchema()
    {
        $schema = [
            'description' => $this->Description,
            'link' => 'https://addons.silverstripe.org/add-ons/' . $this->Name,
            'linkTitle' => _t(
                __CLASS__ . '.ADDONS_LINK_TITLE',
                'View {package} on addons.silverstripe.org',
                ['package' => $this->Title]
            ),
            'rating'=> (int) $this->Rating
        ];

        $this->extend('updateDataSchema', $schema);

        return $schema;
    }
public function getDataSchema()
    {
        $schema = [
            'description' => $this->Description,
            'link' => 'https://addons.silverstripe.org/add-ons/' . $this->Name,
            'linkTitle' => _t(
                __CLASS__ . '.ADDONS_LINK_TITLE',
                'View {package} on addons.silverstripe.org',
                ['package' => $this->Title]
            ),
            'rating'=> (int) $this->Rating
        ];

        $this->extend('updateDataSchema', $schema);

        return $schema;
    }
public function getDataSchema ( ) { $ schema = [ 'description' => $ this -> Description , 'link' => 'https://addons.silverstripe.org/add-ons/' . $ this -> Name , 'linkTitle' => _t ( __CLASS__ . '.ADDONS_LINK_TITLE' , 'View {package} on addons.silverstripe.org' , [ 'package' => $ this -> Title ] ) , 'rating' => ( int ) $ this -> Rating ] ; $ this -> extend ( 'updateDataSchema' , $ schema ) ; return $ schema ; }
Returns a JSON data schema for the frontend React components to use

@return array
Returns a JSON data schema for the frontend React components to use