class LinkContentTypeValidation implements ValidationInterface

LinkContentTypeValidation class.

Takes an array of content type IDs and validates that the link points to an entry of one of those content types.

Applicable to: - Link (to entries)

Methods

__construct(array $contentTypes = [])

LinkContentTypeValidation constructor.

string[]
getContentTypes()

No description

setContentTypes(array $contentTypes)

No description

static string[]
getValidFieldTypes()

Returns an array of allowed field types for the current validation.

jsonSerialize()

{@inheritdoc}

Details

at line 35
__construct(array $contentTypes = [])

LinkContentTypeValidation constructor.

Parameters

array $contentTypes

at line 43
string[] getContentTypes()

Return Value

string[]

at line 53
LinkContentTypeValidation setContentTypes(array $contentTypes)

Parameters

array $contentTypes

Return Value

LinkContentTypeValidation

at line 63
static string[] getValidFieldTypes()

Returns an array of allowed field types for the current validation.

Return Value

string[]

at line 71
jsonSerialize()

{@inheritdoc}