function EntityReferenceSupportedNewEntitiesConstraintValidator::__construct
Creates a new EntityReferenceSupportedNewEntitiesConstraintValidator instance.
File
-
core/
modules/ workspaces/ src/ Plugin/ Validation/ Constraint/ EntityReferenceSupportedNewEntitiesConstraintValidator.php, line 42
Class
- EntityReferenceSupportedNewEntitiesConstraintValidator
- Checks if new entities created for entity reference fields are supported.
Namespace
Drupal\workspaces\Plugin\Validation\ConstraintCode
public function __construct(WorkspaceManagerInterface $workspaceManager, EntityTypeManagerInterface $entityTypeManager, WorkspaceInformationInterface $workspace_information) {
$this->workspaceManager = $workspaceManager;
$this->entityTypeManager = $entityTypeManager;
$this->workspaceInfo = $workspace_information;
}