function ImmutablePropertiesConstraintValidator::create

Same name in other branches
  1. 10 core/lib/Drupal/Core/Entity/Plugin/Validation/Constraint/ImmutablePropertiesConstraintValidator.php \Drupal\Core\Entity\Plugin\Validation\Constraint\ImmutablePropertiesConstraintValidator::create()

Overrides ContainerInjectionInterface::create

File

core/lib/Drupal/Core/Entity/Plugin/Validation/Constraint/ImmutablePropertiesConstraintValidator.php, line 34

Class

ImmutablePropertiesConstraintValidator
Validates the ImmutableProperties constraint.

Namespace

Drupal\Core\Entity\Plugin\Validation\Constraint

Code

public static function create(ContainerInterface $container) : static {
    return new static($container->get('entity_type.manager'));
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.