App\Modules\Users\Controllers\Admin\Roles::edit PHP Method

edit() public method

public edit ( $id )
    public function edit($id)
    {
        // Get the Role Model instance.
        $role = Role::find($id);
        if ($role === null) {
            // There is no Role with this ID.
            $status = __('Role not found: #{0}', $id);
            return Redirect::to('admin/roles')->withStatus($status, 'danger');
        }
        return $this->getView()->shares('title', __d('users', 'Edit Role'))->with('role', $role);
    }