app/Http/Controllers/HomePageController.php
public function treePageDefaultEdit(): ResponseInterface
    {
        $this->checkDefaultTreeBlocksExist();

        $main_blocks = $this->treeBlocks(-1, 'main');
        $side_blocks = $this->treeBlocks(-1, 'side');

        $all_blocks = $this->availableTreeBlocks();
        $title      = I18N::translate('Set the default blocks for new family trees');
        $url_cancel = route('admin-control-panel');
        $url_save   = route('tree-page-default-update');

        return $this->viewResponse('edit-blocks-page', [
            'all_blocks'  => $all_blocks,
            'can_reset'   => false,
            'main_blocks' => $main_blocks,
            'side_blocks' => $side_blocks,
            'title'       => $title,
            'url_cancel'  => $url_cancel,
            'url_save'    => $url_save,
        ]);
    }
public function treePageDefaultEdit(): ResponseInterface
    {
        $this->checkDefaultTreeBlocksExist();

        $main_blocks = $this->treeBlocks(-1, 'main');
        $side_blocks = $this->treeBlocks(-1, 'side');

        $all_blocks = $this->availableTreeBlocks();
        $title      = I18N::translate('Set the default blocks for new family trees');
        $url_cancel = route('admin-control-panel');
        $url_save   = route('tree-page-default-update');

        return $this->viewResponse('edit-blocks-page', [
            'all_blocks'  => $all_blocks,
            'can_reset'   => false,
            'main_blocks' => $main_blocks,
            'side_blocks' => $side_blocks,
            'title'       => $title,
            'url_cancel'  => $url_cancel,
            'url_save'    => $url_save,
        ]);
    }
public function treePageDefaultEdit ( ) : ResponseInterface { $ this -> checkDefaultTreeBlocksExist ( ) ; $ main_blocks = $ this -> treeBlocks ( - 1 , 'main' ) ; $ side_blocks = $ this -> treeBlocks ( - 1 , 'side' ) ; $ all_blocks = $ this -> availableTreeBlocks ( ) ; $ title = I18N :: translate ( 'Set the default blocks for new family trees' ) ; $ url_cancel = route ( 'admin-control-panel' ) ; $ url_save = route ( 'tree-page-default-update' ) ; return $ this -> viewResponse ( 'edit-blocks-page' , [ 'all_blocks' => $ all_blocks , 'can_reset' => false , 'main_blocks' => $ main_blocks , 'side_blocks' => $ side_blocks , 'title' => $ title , 'url_cancel' => $ url_cancel , 'url_save' => $ url_save , ] ) ; }
Show a form to edit the default blocks for new trees.

@return ResponseInterface
Show a form to edit the default blocks for new trees .