FOS\UserBundle\Form\GroupForm::process PHP Method

process() public method

public process ( FOS\UserBundle\Model\GroupInterface $group = null )
$group FOS\UserBundle\Model\GroupInterface
    public function process(GroupInterface $group = null)
    {
        if (null === $group) {
            $group = $this->groupManager->createGroup('');
        }
        $this->setData($group);
        if ('POST' == $this->request->getMethod()) {
            $this->bind($this->request);
            if ($this->isValid()) {
                $this->groupManager->updateGroup($group);
                return true;
            }
        }
        return false;
    }