RoleController::add PHP Method

add() public method

Create new role.
Since: 2.0.0
public add ( )
    public function add()
    {
        if (!$this->_permission()) {
            return;
        }
        $this->title(t('Add Role'));
        // Use the edit form with no roleid specified.
        $this->View = 'Edit';
        $this->edit();
    }