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

editGroup() public method

Edit a group's information
public editGroup ( string $groupId = '' )
$groupId string
    public function editGroup(string $groupId = '')
    {
        $groupId = (int) $groupId;
        $post = $this->post(new EditGroupFilter());
        if (!empty($post)) {
            if ($this->account->editGroup($groupId, $post)) {
                \Airship\redirect($this->airship_cabin_prefix . '/crew/groups');
            }
        }
        $this->lens('crew/group_edit', ['active_link' => 'bridge-link-admin-crew-groups', 'group' => $this->account->getGroup($groupId), 'allowed_parents' => $this->account->getGroupTree(0, 'children', [$groupId])]);
    }