src/php/main/Eix/Services/Data/Responders/CollectionManager.php
protected function getEditionResponse(Entity $entity = null)
    {
        // Create a new HTML response.
        $response = $this->getHtmlResponse();
        // Indicate where is the template.
        $response->setTemplateId(sprintf(
            '%s/edit',
            $this->getCollectionName()
        ));
        // If there is an entity ID, load that entity in the response as well.
        if ($entity) {
            $response->setData(
                $this->getItemName(),
                $entity->getFieldsData()
            );
        }

        return $response;
    }
protected function getEditionResponse(Entity $entity = null)
    {
        // Create a new HTML response.
        $response = $this->getHtmlResponse();
        // Indicate where is the template.
        $response->setTemplateId(sprintf(
            '%s/edit',
            $this->getCollectionName()
        ));
        // If there is an entity ID, load that entity in the response as well.
        if ($entity) {
            $response->setData(
                $this->getItemName(),
                $entity->getFieldsData()
            );
        }

        return $response;
    }
protected function getEditionResponse ( Entity $ entity = null ) { // Create a new HTML response. $ response = $ this -> getHtmlResponse ( ) ; // Indicate where is the template. $ response -> setTemplateId ( sprintf ( '%s/edit' , $ this -> getCollectionName ( ) ) ) ; // If there is an entity ID, load that entity in the response as well. if ( $ entity ) { $ response -> setData ( $ this -> getItemName ( ) , $ entity -> getFieldsData ( ) ) ; } return $ response ; }
Return a response that shows an edition page.
@param  type $id the ID of the entity to edit, if any.
@return Html
Return a response that shows an edition page .