class BundleConstraint extends Constraint (View source)

Checks if a value is a valid entity type.

Properties

string $message

The default violation message.

string|array $bundle

The bundle option.

Methods

array
getBundleOption()

Gets the bundle option as array.

string|null
getDefaultOption()

{@inheritdoc}

array
getRequiredOptions()

{@inheritdoc}

Details

array getBundleOption()

Gets the bundle option as array.

Return Value

array

string|null getDefaultOption()

{@inheritdoc}

Return Value

string|null

array getRequiredOptions()

{@inheritdoc}

Return Value

array