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.

getDefaultOption()

{@inheritdoc}

getRequiredOptions()

{@inheritdoc}

Details

array getBundleOption()

Gets the bundle option as array.

Return Value

array

getDefaultOption()

{@inheritdoc}

getRequiredOptions()

{@inheritdoc}