function SchemaListenerController::create

Same name and namespace in other branches
  1. 9 core/modules/config/tests/config_test/src/SchemaListenerController.php \Drupal\config_test\SchemaListenerController::create()
  2. 8.9.x core/modules/config/tests/config_test/src/SchemaListenerController.php \Drupal\config_test\SchemaListenerController::create()
  3. 11.x core/modules/config/tests/config_test/src/SchemaListenerController.php \Drupal\config_test\SchemaListenerController::create()

Instantiates a new instance of the implementing class using autowiring.

Parameters

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

Return value

static

Overrides AutowireTrait::create

File

core/modules/config/tests/config_test/src/SchemaListenerController.php, line 28

Class

SchemaListenerController
Controller for testing \Drupal\Core\Config\Development\ConfigSchemaChecker.

Namespace

Drupal\config_test

Code

public static function create(ContainerInterface $container) {
  return new static($container->get('config.factory'));
}

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