original_string: public function transform($block)
      {
          $block = $this->entityToArray(Block::class, $block);
          return [
              'id'          => $this->setNullableValue($block['id']),
              'type'        => $block['type'],
              'region'      => $block['region'],
              'filter'      => $block['filter'],
              'options'     => $block['options'],
              'theme'       => $block['theme'],
              'weight'      => (int) $block['weight'],
              'isActive'    => (bool) $block['is_active'],
              'isCacheable' => (bool) $block['is_cacheable'],
              'createdAt'   => $block['created_at'],
              'updatedAt'   => $block['updated_at']
          ];
      }
code: public function transform($block)
      {
          $block = $this->entityToArray(Block::class, $block);
          return [
              'id'          => $this->setNullableValue($block['id']),
              'type'        => $block['type'],
              'region'      => $block['region'],
              'filter'      => $block['filter'],
              'options'     => $block['options'],
              'theme'       => $block['theme'],
              'weight'      => (int) $block['weight'],
              'isActive'    => (bool) $block['is_active'],
              'isCacheable' => (bool) $block['is_cacheable'],
              'createdAt'   => $block['created_at'],
              'updatedAt'   => $block['updated_at']
          ];
      }
code_tokens: public function transform ( $ block ) { $ block = $ this -> entityToArray ( Block :: class , $ block ) ; return [ 'id' => $ this -> setNullableValue ( $ block [ 'id' ] ) , 'type' => $ block [ 'type' ] , 'region' => $ block [ 'region' ] , 'filter' => $ block [ 'filter' ] , 'options' => $ block [ 'options' ] , 'theme' => $ block [ 'theme' ] , 'weight' => ( int ) $ block [ 'weight' ] , 'isActive' => ( bool ) $ block [ 'is_active' ] , 'isCacheable' => ( bool ) $ block [ 'is_cacheable' ] , 'createdAt' => $ block [ 'created_at' ] , 'updatedAt' => $ block [ 'updated_at' ] ] ; }
docstring: Transforms block entity
  
  @param Block|array $block Block entity
  
  @return array
docstring_tokens: Transforms block entity