public function ConfigurableResourceTypeRepository::__construct in JSON:API Extras 8.3
Same name and namespace in other branches
- 8 src/ResourceType/ConfigurableResourceTypeRepository.php \Drupal\jsonapi_extras\ResourceType\ConfigurableResourceTypeRepository::__construct()
Instantiates a ResourceTypeRepository object.
Parameters
\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.
\Drupal\Core\Entity\EntityTypeBundleInfoInterface $entity_bundle_info: The entity type bundle info service.
\Drupal\Core\Entity\EntityFieldManagerInterface $entity_field_manager: The entity field manager.
\Drupal\Core\Cache\CacheBackendInterface $cache: The cache backend.
\Symfony\Component\EventDispatcher\EventDispatcherInterface $dispatcher: The event dispatcher.
Overrides ResourceTypeRepository::__construct
File
- src/
ResourceType/ ConfigurableResourceTypeRepository.php, line 82
Class
- ConfigurableResourceTypeRepository
- Provides a repository of JSON:API configurable resource types.
Namespace
Drupal\jsonapi_extras\ResourceTypeCode
public function __construct(...$arguments) {
parent::__construct(...$arguments);
// This is needed, as the property is added in Drupal 8.8 and it is not
// yet present in 8.7 or the contrib version of JSON:API at the time.
if (property_exists($this, 'cacheTags')) {
$this->cacheTags = array_merge($this->cacheTags, [
'config:jsonapi_extras.settings',
'config:jsonapi_resource_config_list',
]);
}
}