class EntityHasFieldConstraint extends Constraint (View source)

Checks if a value is an entity that has a specific field.

Properties

string $message

The default violation message.

string $notFieldableMessage

The violation message for non-fieldable entities.

string $field_name

The field name option.

Methods

getDefaultOption()

{@inheritdoc}

getRequiredOptions()

{@inheritdoc}

Details

getDefaultOption()

{@inheritdoc}

getRequiredOptions()

{@inheritdoc}