Airship\Cabin\Bridge\Landing\Crew::createGroup PHP Method

createGroup() public method

Create a new group for users
public createGroup ( )
    public function createGroup()
    {
        $post = $this->post(new NewGroupFilter());
        if (!empty($post)) {
            if ($this->account->createGroup($post)) {
                \Airship\redirect($this->airship_cabin_prefix . '/crew/groups');
            }
        }
        $this->lens('crew/group_new', ['active_link' => 'bridge-link-admin-crew-groups', 'groups' => $this->account->getGroupTree()]);
    }