src/CoreBundle/Controller/Backend/AbstractAddAllController.php
protected function render($table, $metaModel, Request $request)
    {
        $fields = $this->generateForm($table, $metaModel, $request);

        return [
            'action'        => '',
            'requestToken'  => REQUEST_TOKEN,
            'href'          => $this->getReferer($request, $table, true),
            'backBt'        => $this->translator->trans('MSC.backBT', [], 'contao_default'),
            'add'           => $this->translator->trans('MSC.continue', [], 'contao_default'),
            'saveNclose'    => $this->translator->trans('MSC.saveNclose', [], 'contao_default'),
            'activate'      => $this->translator->trans($table . '.addAll_activate', [], 'contao_' . $table),
            'headline'      => $this->translator->trans($table . '.addall.1', [], 'contao_' . $table),
            'selectAll'     => $this->translator->trans('MSC.selectAll', [], 'contao_default'),
            'cacheMessage'  => '',
            'updateMessage' => '',
            'hasCheckbox'   => count($fields) > 0,
            'fields'        => $fields,
        ];
    }
protected function render($table, $metaModel, Request $request)
    {
        $fields = $this->generateForm($table, $metaModel, $request);

        return [
            'action'        => '',
            'requestToken'  => REQUEST_TOKEN,
            'href'          => $this->getReferer($request, $table, true),
            'backBt'        => $this->translator->trans('MSC.backBT', [], 'contao_default'),
            'add'           => $this->translator->trans('MSC.continue', [], 'contao_default'),
            'saveNclose'    => $this->translator->trans('MSC.saveNclose', [], 'contao_default'),
            'activate'      => $this->translator->trans($table . '.addAll_activate', [], 'contao_' . $table),
            'headline'      => $this->translator->trans($table . '.addall.1', [], 'contao_' . $table),
            'selectAll'     => $this->translator->trans('MSC.selectAll', [], 'contao_default'),
            'cacheMessage'  => '',
            'updateMessage' => '',
            'hasCheckbox'   => count($fields) > 0,
            'fields'        => $fields,
        ];
    }
protected function render ( $ table , $ metaModel , Request $ request ) { $ fields = $ this -> generateForm ( $ table , $ metaModel , $ request ) ; return [ 'action' => '' , 'requestToken' => REQUEST_TOKEN , 'href' => $ this -> getReferer ( $ request , $ table , true ) , 'backBt' => $ this -> translator -> trans ( 'MSC.backBT' , [ ] , 'contao_default' ) , 'add' => $ this -> translator -> trans ( 'MSC.continue' , [ ] , 'contao_default' ) , 'saveNclose' => $ this -> translator -> trans ( 'MSC.saveNclose' , [ ] , 'contao_default' ) , 'activate' => $ this -> translator -> trans ( $ table . '.addAll_activate' , [ ] , 'contao_' . $ table ) , 'headline' => $ this -> translator -> trans ( $ table . '.addall.1' , [ ] , 'contao_' . $ table ) , 'selectAll' => $ this -> translator -> trans ( 'MSC.selectAll' , [ ] , 'contao_default' ) , 'cacheMessage' => '' , 'updateMessage' => '' , 'hasCheckbox' => count ( $ fields ) > 0 , 'fields' => $ fields , ] ; }
Render the output array for the template.

@param string     $table     The name of the table to add to.
@param IMetaModel $metaModel The MetaModel name on which to work on.
@param Request    $request   The request.

@return array
Render the output array for the template .