original_string: public function createForm($entity)
      {
          $formSpec = ArrayUtils::iteratorToArray($this->getFormSpecification($entity));
          if (!isset($formSpec['options']['merge_input_filter'])) {
              $formSpec['options']['merge_input_filter'] = true;
          }
  
          return $this->getFormFactory()->createForm($formSpec);
      }
code: public function createForm($entity)
      {
          $formSpec = ArrayUtils::iteratorToArray($this->getFormSpecification($entity));
          if (!isset($formSpec['options']['merge_input_filter'])) {
              $formSpec['options']['merge_input_filter'] = true;
          }
  
          return $this->getFormFactory()->createForm($formSpec);
      }
code_tokens: public function createForm ( $ entity ) { $ formSpec = ArrayUtils :: iteratorToArray ( $ this -> getFormSpecification ( $ entity ) ) ; if ( ! isset ( $ formSpec [ 'options' ] [ 'merge_input_filter' ] ) ) { $ formSpec [ 'options' ] [ 'merge_input_filter' ] = true ; } return $ this -> getFormFactory ( ) -> createForm ( $ formSpec ) ; }
docstring: Create a form from an object.
  
  @param  string|object $entity
  @return \CmsCommon\Form\FormInterface
docstring_tokens: Create a form from an object .