Drupal 8  8.0.2
ValidReferenceConstraintValidator Class Reference
Inheritance diagram for ValidReferenceConstraintValidator:

Public Member Functions

 __construct (SelectionPluginManagerInterface $selection_manager, EntityTypeManagerInterface $entity_type_manager)

Static Public Member Functions

static create (ContainerInterface $container)

Protected Attributes


Detailed Description

Checks if referenced entities are valid.

Constructor & Destructor Documentation

__construct ( SelectionPluginManagerInterface  $selection_manager,
EntityTypeManagerInterface  $entity_type_manager 

Constructs a ValidReferenceConstraintValidator object.

\Drupal\Core\Entity\EntityReferenceSelection\SelectionPluginManagerInterface$selection_managerThe selection plugin manager.
\Drupal\Core\Entity\EntityTypeManagerInterface$entity_type_managerThe entity type manager.

References Drupal\entityTypeManager().

Here is the call graph for this function:

Member Function Documentation

static create ( ContainerInterface  $container)

{Instantiates a new instance of this class.This is a factory method that returns a new instance of this class. The factory should pass any needed dependencies into the constructor of this class, but not the container itself. Every call to this method must return a new instance of this class; that is, it may not implement a singleton.

\Symfony\Component\DependencyInjection\ContainerInterface$containerThe service container this instance should use.

Implements ContainerInjectionInterface.

The documentation for this class was generated from the following file: