public function SwaggerUiLibraryDiscovery::__construct in Swagger UI Field Formatter 8.3
Same name in this branch
- 8.3 src/Service/SwaggerUiLibraryDiscovery.php \Drupal\swagger_ui_formatter\Service\SwaggerUiLibraryDiscovery::__construct()
- 8.3 tests/modules/swagger_ui_formatter_test/src/Service/SwaggerUiLibraryDiscovery.php \Drupal\swagger_ui_formatter_test\Service\SwaggerUiLibraryDiscovery::__construct()
Constructs a new object.
Parameters
\Drupal\swagger_ui_formatter\Service\SwaggerUiLibraryDiscoveryInterface $decorated: The decorated service.
\Drupal\Core\State\StateInterface $state: The state service.
\Drupal\Core\Cache\CacheTagsInvalidatorInterface $cache_tags_invalidator: The cache tags invalidator service.
\Drupal\Core\Asset\LibraryDiscoveryInterface $library_discovery: The library discovery.
File
- tests/modules/ swagger_ui_formatter_test/ src/ Service/ SwaggerUiLibraryDiscovery.php, line 70 
Class
- SwaggerUiLibraryDiscovery
- Decorator service for testing.
Namespace
Drupal\swagger_ui_formatter_test\ServiceCode
public function __construct(SwaggerUiLibraryDiscoveryInterface $decorated, StateInterface $state, CacheTagsInvalidatorInterface $cache_tags_invalidator, LibraryDiscoveryInterface $library_discovery) {
  $this->decorated = $decorated;
  $this->state = $state;
  $this->cacheTagsInvalidator = $cache_tags_invalidator;
  $this->libraryDiscovery = $library_discovery;
}