class FilefieldSourcesServiceProvider in FileField Sources 8
Alter file.mime_type.guesser.extension service.
Hierarchy
- class \Drupal\filefield_sources\FilefieldSourcesServiceProvider implements ServiceModifierInterface
Expanded class hierarchy of FilefieldSourcesServiceProvider
File
- src/
FilefieldSourcesServiceProvider.php, line 11
Namespace
Drupal\filefield_sourcesView source
class FilefieldSourcesServiceProvider implements ServiceModifierInterface {
/**
* {@inheritdoc}
*/
public function alter(ContainerBuilder $container) {
$definition = $container
->getDefinition('file.mime_type.guesser.extension');
$definition
->setClass('Drupal\\filefield_sources\\File\\MimeType\\ExtensionMimeTypeGuesser');
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
FilefieldSourcesServiceProvider:: |
public | function |
Modifies existing service definitions. Overrides ServiceModifierInterface:: |