src/Http/Controllers/ContentBlockController.php
/**
     * Show the form for editing the specified resource.
     *
     * @param  int $contentId
     * @param  int $blockTypeId
     * @param  int $blockId
     *
     * @return \Symfony\Component\HttpFoundation\Response
     */
Show the form for editing the specified resource.


Show the form for editing the specified resource .
public function edit($contentId, $blockTypeId, $blockId)
    {
        list($content, $blockType, $block) = array_values($this->contentBlocks->findById($contentId, $blockTypeId, $blockId));
        if (! $block) {
            return $this->handleError(trans('soda::errors.not-found', ['object' => trans('soda::terminology.block')]));
        }
        app('soda.interface')->setHeading('Editing block');
        app('soda.interface')->breadcrumbs()->addLink(route('soda.content.index'), ucfirst(trans('soda::terminology.content_plural')));
        app('soda.interface')->breadcrumbs()->addLink(route('soda.content.edit', $content->id), $content->name);
        app('soda.interface')->breadcrumbs()->addLink(route('soda.content.edit', $content->id).'?tab='.strtolower($blockType->identifier), $blockType->name);
        return soda_cms_view('data.content.blocks.view', compact('content', 'blockType', 'block'));
    }
public function edit ( $ contentId , $ blockTypeId , $ blockId ) { list ( $ content , $ blockType , $ block ) = array_values ( $ this -> contentBlocks -> findById ( $ contentId , $ blockTypeId , $ blockId ) ) ; if ( ! $ block ) { return $ this -> handleError ( trans ( 'soda::errors.not-found' , [ 'object' => trans ( 'soda::terminology.block' ) ] ) ) ; } app ( 'soda.interface' ) -> setHeading ( 'Editing block' ) ; app ( 'soda.interface' ) -> breadcrumbs ( ) -> addLink ( route ( 'soda.content.index' ) , ucfirst ( trans ( 'soda::terminology.content_plural' ) ) ) ; app ( 'soda.interface' ) -> breadcrumbs ( ) -> addLink ( route ( 'soda.content.edit' , $ content -> id ) , $ content -> name ) ; app ( 'soda.interface' ) -> breadcrumbs ( ) -> addLink ( route ( 'soda.content.edit' , $ content -> id ) . '?tab=' . strtolower ( $ blockType -> identifier ) , $ blockType -> name ) ; return soda_cms_view ( 'data.content.blocks.view' , compact ( 'content' , 'blockType' , 'block' ) ) ; }
Show the form for editing the specified resource.
Show the form for editing the specified resource .