Documentation

ConsumableConstraintValidator extends ConstraintValidator
in package
implements ContainerInjectionInterface

FinalYes

Validates the Consumable Constraint constraint.

Table of Contents

Interfaces

ContainerInjectionInterface

Properties

$entityTypeManager  : EntityTypeManagerInterface

Methods

__construct()  : mixed
Constructs the object.
create()  : self
{@inheritdoc}
validate()  : void
{@inheritdoc}

Properties

Methods

__construct()

Constructs the object.

public __construct(EntityTypeManagerInterface $entityTypeManager) : mixed
Parameters
$entityTypeManager : EntityTypeManagerInterface

create()

{@inheritdoc}

public static create(ContainerInterface $container) : self
Parameters
$container : ContainerInterface
Return values
self

validate()

{@inheritdoc}

public validate(mixed $entity, Constraint $constraint) : void
Parameters
$entity : mixed
$constraint : Constraint

        
On this page

Search results