class ZoneOwnershipFormResolver (View source)

Reads the owner and group fields of the add-zone forms and applies the shared ownership rules. The forms drop what the ownership mode disallows instead of rejecting it, and word the refusals in the user's language.

Methods

string|null
blocker(int $callerUserId)

The page-level refusal for a user who could not pick any owner, or null.

resolve(Request $request, int $callerUserId)

No description

static string
errorMessage(ZoneOwnershipResolution $resolution)

The refusal in the user's language; the resolution's own text is the API wording.

Details

__construct(ZoneOwnershipModeService $mode, ZoneCreateOwnershipResolver $resolver)

No description

string|null blocker(int $callerUserId)

The page-level refusal for a user who could not pick any owner, or null.

Parameters

int $callerUserId

Return Value

string|null

ZoneOwnershipResolution resolve(Request $request, int $callerUserId)

No description

Parameters

Request $request
int $callerUserId

Return Value

ZoneOwnershipResolution

static string errorMessage(ZoneOwnershipResolution $resolution)

The refusal in the user's language; the resolution's own text is the API wording.

Parameters

ZoneOwnershipResolution $resolution

Return Value

string