original_string: 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'],
          ];
      }
code: 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'],
          ];
      }
code_tokens: 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' ] , ] ; }
docstring: Transforms content translation entity
  
  @param ContentTranslation|array $translation ContentTranslation entity
  
  @return array
docstring_tokens: Transforms content translation entity