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