gorriecoe\LinkField\Forms\HasOneLinkField::validate
Check that there is a link.
RequiredFields makes assumptions about what missing values look like that the underlying implementation does not meet (specifically, a missing link is not an empty array). That check is hard-coded into RequiredFields. This works around it by checking to see if the field is required, then checking whether it is empty as part of validate(). Normally, required fields are checked in a separate check following validation. {@inheritdoc}
Signature
public function validate(
$validator )
Parameters
$validator
—