function EntityTestContainerFactoryPlugin::create

Same name in other branches
  1. 10 core/modules/system/tests/modules/entity_test/src/Plugin/Validation/Constraint/EntityTestContainerFactoryPlugin.php \Drupal\entity_test\Plugin\Validation\Constraint\EntityTestContainerFactoryPlugin::create()
  2. 11.x core/modules/system/tests/modules/entity_test/src/Plugin/Validation/Constraint/EntityTestContainerFactoryPlugin.php \Drupal\entity_test\Plugin\Validation\Constraint\EntityTestContainerFactoryPlugin::create()

Overrides ContainerFactoryPluginInterface::create

File

core/modules/system/tests/modules/entity_test/src/Plugin/Validation/Constraint/EntityTestContainerFactoryPlugin.php, line 23

Class

EntityTestContainerFactoryPlugin
A dummy constraint for testing \Drupal\Core\Validation\ConstraintFactory.

Namespace

Drupal\entity_test\Plugin\Validation\Constraint

Code

public static function create(ContainerInterface $container, array $configuration, $plugin_id, $plugin_definition) {
    return new static($configuration, $plugin_id, $plugin_definition);
}

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