configFactory = $config_factory; } /** * {@inheritdoc} */ public static function create(ContainerInterface $container) { return new static( $container->get('config.factory') ); } /** * Tests the WebTestBase tests can use strict schema checking. */ public function test() { try { $this->configFactory->getEditable('config_schema_test.schemaless')->set('foo', 'bar')->save(); } catch (SchemaIncompleteException $e) { return [ '#markup' => $e->getMessage(), ]; } } }