Set form group view file.

@param string $view
@param string $group

@return FormInterface
967550
public function setGroupView(string $view, string $group = 'default'): FormInterface
    {
        // Verify that the form has the mentioned group.
        // If not, throw an error.
        if (! $this->repository()->hasGroup($group)) {
            throw new DomainException('You cannot change the view of an undefined form group.');
        }

        $this->repository()->getGroup($group)->setView($view);

        return $this;
    }
162732
private function view(View $view): void
    {
        $this->group($view->getName(), false);
        $this->presentationModel($view->getPresentationModel(), 'presentationModel');
        $this->groupEnd();
    }
334027
public function setView(\Zend_View_Interface $view = null)
    {
        $element = parent::setView($view);
        if (null !== $view) {
            if (false === $view->getPluginLoader('helper')->getPaths('Gems_JQuery_View_Helper')) {
                $view->addHelperPath('Gems/JQuery/View/Helper', 'Gems_JQuery_View_Helper');
            }
        }
        return $element;
    }
872849
public function generateView($group, $module, $model, $mode, $output, $file = "", $customTemplate = "")
    {
        if($output != "api")
        {
            $generator = new ViewGenerator($group, $module, $model, $mode, $output, $file, $customTemplate);
            $generator->run();
        }
    }
1143929
public function compose(View $view)
    {
        /** @var RememberedFileBag $rememberedFiles */
        $rememberedFiles = $this->session->get('_remembered_files', new RememberedFileBag());
        $view->with('rememberedFiles', $rememberedFiles->toFileBag());
    }
834802
public function setView(\Zend_View_Interface $view = null) {
        if (null !== $view) {
            if (false === $view->getPluginLoader('helper')->getPaths('CKEditor_View_Helper')) {
                $view->addHelperPath('CKEditor/View/Helper', 'CKEditor_View_Helper');
            }
        }

        if (!file_exists($this->basePath . '/ckeditor.js')) {
            throw new \Zend_Exception('Use setBasePath() to set the full path to the file ckeditor.php in the public folder of ckedit.');
        }

        return parent::setView($view);
    }
866946
protected function populateView($view)
    {
        $view = $this->initViewVars($view);
        $view = $this->initViewContentBlocks($view);

        return $view;
    }
279241
public function setView($view)
    {
        parent::setView($view);

        if (!$this->_view instanceof LibBaseViewAbstract) {
            $view = AnInflector::isPlural($view) ? 'comments' : 'comment';
            $defaults[] = 'ComBaseView'.ucfirst($view).ucfirst($this->_view->name);
            register_default(array(
                'identifier' => $this->_view,
                'default' => $defaults, ));
        }

        return $this;
    }
1001587
public function buildView(FormView $view, FormInterface $form, array $options)
    {
        $formName = $form->getName();
        //Make sure to exclude all form names starting with 2 underscores.
        //For instance the prototype of a Collection starts with 2 underscores
        if ('__' === substr($formName,0,2)) {
            return;
        }

        if (!empty($options['group'])) {
            $group = $options['group'];
            $type = 'group';
        } else {
            // If no group is set, make sure we have a unique index.
            // This is needed to maintain the correct order of the fields.
            $group = 'single_' . $formName;
            $type = 'single';
        }

        $root = $view->parent;

        if (!isset($root->vars['groups'][$group])) {
            $root->vars['groups'][$group] = [
                'type' => $type,
                'items' => [],
            ];
        }
        $root->vars['groups'][$group]['items'][] = $formName;
    }
398514
public function setGroupLabel($v)
    {
        if ($v !== null) {
            $v = (string) $v;
        }

        if ($this->group_label !== $v) {
            $this->group_label = $v;
            $this->modifiedColumns[SportTableMap::COL_GROUP_LABEL] = true;
        }

        return $this;
    }
581382
public function setGroup($group)
	{
	    if ($this->options['group']) {
	        $group = str_replace('//', '/', $this->options['group'] . '/' . $group);
	    }
	    
	    return $this->setOption('group', $group);
	}
182074
public function setGroupId($v)
    {
        if ($v !== null) {
            $v = (int) $v;
        }

        if ($this->group_id !== $v) {
            $this->group_id = $v;
            $this->modifiedColumns[SkillGroupTableMap::COL_GROUP_ID] = true;
        }

        if ($this->aGroup !== null && $this->aGroup->getId() !== $v) {
            $this->aGroup = null;
        }

        return $this;
    }
740310
public function setView($view, array $data = [])
    {
        $this->view = $view;

        $this->data = $data;

        return $this;
    }
540992
public function formForGroupAction(Group $group)
    {
        $url = $this->router->generate('claro_message_show', array('message' => 0))
            . '?grpsIds[]=' . $group->getId();

        return new RedirectResponse($url);
    }
658179
def group_view(name, **kwargs):
    
    ctx = Context(**kwargs)
    ctx.execute_action('group:view', **{
        'storage': ctx.repo.create_secure_service('storage'),
        'name': name,
    })
406180
public GroupForm getGroupForm(String key) {

        log.debug("Initializing group form for group key " + key);

        // find the current version of this group entity
        IEntityGroup group = GroupService.findGroup(key);

        // update the group form with the existing group's main information
        GroupForm form = new GroupForm();
        form.setKey(key);
        form.setName(group.getName());
        form.setDescription(group.getDescription());
        form.setCreatorId(group.getCreatorID());
        form.setType(groupListHelper.getEntityType(group).toString());

        // add child groups to our group form bean
        for (IGroupMember child : group.getChildren()) {
            JsonEntityBean childBean = groupListHelper.getEntity(child);
            form.addMember(childBean);
        }

        return form;
    }
1271530
public function edit($groupId = null)
    {
        $this->requireAdmin();

        if (!is_null($groupId)) {
            $group = $this->groupStore->getById($groupId);
        } else {
            $group = new ProjectGroup();
        }

        if ($this->request->getMethod() == 'POST') {
            $group->setTitle($this->getParam('title'));
            $this->groupStore->save($group);

            $response = new b8\Http\Response\RedirectResponse();
            $response->setHeader('Location', PHPCI_URL.'group');
            return $response;
        }

        $form = new Form();
        $form->setMethod('POST');
        $form->setAction(PHPCI_URL . 'group/edit' . (!is_null($groupId) ? '/' . $groupId : ''));

        $title = new Form\Element\Text('title');
        $title->setContainerClass('form-group');
        $title->setClass('form-control');
        $title->setLabel('Group Title');
        $title->setValue($group->getTitle());

        $submit = new Form\Element\Submit();
        $submit->setValue('Save Group');

        $form->addField($title);
        $form->addField($submit);

        $this->view->form = $form;
    }