src/components/FormComponent.php
protected function initialize($storage)
    {
        $this->parameters[self::PARAMETER_SMALLEST_IMAGE] = $storage->getImageSet()->getSmallestImageSet();
        $this->parameters[self::PARAMETER_CMS_PREFIX] = '';

        $this->parameters[self::PARAMETER_DOCUMENT_TYPE] = $this->storage->getDocumentTypes()->getDocumentTypeBySlug($this->documentType,
            true);
        $this->parameters[self::PARAMETER_DOCUMENT_TYPES] = $this->storage->getDocumentTypes()->getDocumentTypes();
        $this->parameters[self::PARAMETER_HIDE_TITLE_AND_STATE] = true;
        $this->parameters[self::PARAMETER_FORM_ID] = $this->formId;
    }
protected function initialize($storage)
    {
        $this->parameters[self::PARAMETER_SMALLEST_IMAGE] = $storage->getImageSet()->getSmallestImageSet();
        $this->parameters[self::PARAMETER_CMS_PREFIX] = '';

        $this->parameters[self::PARAMETER_DOCUMENT_TYPE] = $this->storage->getDocumentTypes()->getDocumentTypeBySlug($this->documentType,
            true);
        $this->parameters[self::PARAMETER_DOCUMENT_TYPES] = $this->storage->getDocumentTypes()->getDocumentTypes();
        $this->parameters[self::PARAMETER_HIDE_TITLE_AND_STATE] = true;
        $this->parameters[self::PARAMETER_FORM_ID] = $this->formId;
    }
protected function initialize ( $ storage ) { $ this -> parameters [ self :: PARAMETER_SMALLEST_IMAGE ] = $ storage -> getImageSet ( ) -> getSmallestImageSet ( ) ; $ this -> parameters [ self :: PARAMETER_CMS_PREFIX ] = '' ; $ this -> parameters [ self :: PARAMETER_DOCUMENT_TYPE ] = $ this -> storage -> getDocumentTypes ( ) -> getDocumentTypeBySlug ( $ this -> documentType , true ) ; $ this -> parameters [ self :: PARAMETER_DOCUMENT_TYPES ] = $ this -> storage -> getDocumentTypes ( ) -> getDocumentTypes ( ) ; $ this -> parameters [ self :: PARAMETER_HIDE_TITLE_AND_STATE ] = true ; $ this -> parameters [ self :: PARAMETER_FORM_ID ] = $ this -> formId ; }
Sets variables needed for rendering the form template

@param Storage $storage
Sets variables needed for rendering the form template