src/Gzero/Api/Transformer/ContentTranslationTransformer.php
public function transform($translation)
    {
        $translation = $this->entityToArray(ContentTranslation::class, $translation);
        return [
            'id'             => (int) $translation['id'],
            'langCode'       => $translation['lang_code'],
            'title'          => $translation['title'],
            'teaser'         => $translation['teaser'],
            'body'           => $translation['body'],
            'seoTitle'       => $translation['seo_title'],
            'seoDescription' => $translation['seo_description'],
            'isActive'       => (bool) $translation['is_active'],
            'createdAt'      => $translation['created_at'],
            'updatedAt'      => $translation['updated_at'],
        ];
    }
public function transform($translation)
    {
        $translation = $this->entityToArray(ContentTranslation::class, $translation);
        return [
            'id'             => (int) $translation['id'],
            'langCode'       => $translation['lang_code'],
            'title'          => $translation['title'],
            'teaser'         => $translation['teaser'],
            'body'           => $translation['body'],
            'seoTitle'       => $translation['seo_title'],
            'seoDescription' => $translation['seo_description'],
            'isActive'       => (bool) $translation['is_active'],
            'createdAt'      => $translation['created_at'],
            'updatedAt'      => $translation['updated_at'],
        ];
    }
public function transform ( $ translation ) { $ translation = $ this -> entityToArray ( ContentTranslation :: class , $ translation ) ; return [ 'id' => ( int ) $ translation [ 'id' ] , 'langCode' => $ translation [ 'lang_code' ] , 'title' => $ translation [ 'title' ] , 'teaser' => $ translation [ 'teaser' ] , 'body' => $ translation [ 'body' ] , 'seoTitle' => $ translation [ 'seo_title' ] , 'seoDescription' => $ translation [ 'seo_description' ] , 'isActive' => ( bool ) $ translation [ 'is_active' ] , 'createdAt' => $ translation [ 'created_at' ] , 'updatedAt' => $ translation [ 'updated_at' ] , ] ; }
Transforms content translation entity

@param ContentTranslation|array $translation ContentTranslation entity

@return array
Transforms content translation entity