public function transform($translation)
    {
        $translation = $this->entityToArray(BlockTranslation::class, $translation);
        return [
            'id'           => (int) $translation['id'],
            'langCode'     => $translation['lang_code'],
            'title'        => $translation['title'],
            'body'         => $translation['body'],
            'customFields' => $this->transformCustomFields($translation),
            'isActive'     => (bool) $translation['is_active'],
            'createdAt'    => $translation['created_at'],
            'updatedAt'    => $translation['updated_at'],
        ];
    }
public function transform($translation)
    {
        $translation = $this->entityToArray(BlockTranslation::class, $translation);
        return [
            'id'           => (int) $translation['id'],
            'langCode'     => $translation['lang_code'],
            'title'        => $translation['title'],
            'body'         => $translation['body'],
            'customFields' => $this->transformCustomFields($translation),
            'isActive'     => (bool) $translation['is_active'],
            'createdAt'    => $translation['created_at'],
            'updatedAt'    => $translation['updated_at'],
        ];
    }
public function transform ( $ translation ) { $ translation = $ this -> entityToArray ( BlockTranslation :: class , $ translation ) ; return [ 'id' => ( int ) $ translation [ 'id' ] , 'langCode' => $ translation [ 'lang_code' ] , 'title' => $ translation [ 'title' ] , 'body' => $ translation [ 'body' ] , 'customFields' => $ this -> transformCustomFields ( $ translation ) , 'isActive' => ( bool ) $ translation [ 'is_active' ] , 'createdAt' => $ translation [ 'created_at' ] , 'updatedAt' => $ translation [ 'updated_at' ] , ] ; }
Transforms block translation entity

@param BlockTranslation|array $translation BlockTranslation entity

@return array
Transforms block translation entity