LinkContentTypeValidation
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.
at line 43
string[]
getContentTypes()
at line 53
LinkContentTypeValidation
setContentTypes(array $contentTypes)
at line 63
static string[]
getValidFieldTypes()
Returns an array of allowed field types for the current validation.
at line 71
jsonSerialize()
{@inheritdoc}