function EntityTestContainerFactoryPlugin::create

Same name in other branches
  1. 9 core/modules/system/tests/modules/entity_test/src/Plugin/Validation/Constraint/EntityTestContainerFactoryPlugin.php \Drupal\entity_test\Plugin\Validation\Constraint\EntityTestContainerFactoryPlugin::create()
  2. 10 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 26

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.