public function ProviderFilterDecorator::__construct in Drupal 9
Same name and namespace in other branches
- 8 core/modules/migrate/src/Plugin/Discovery/ProviderFilterDecorator.php \Drupal\migrate\Plugin\Discovery\ProviderFilterDecorator::__construct()
Constructs an InheritProviderDecorator object.
Parameters
\Drupal\Component\Plugin\Discovery\DiscoveryInterface $decorated: The object implementing DiscoveryInterface that is being decorated.
callable $provider_exists: A callable, gets passed a provider name, should return TRUE if the provider exists and FALSE if not.
File
- core/
modules/ migrate/ src/ Plugin/ Discovery/ ProviderFilterDecorator.php, line 43
Class
- ProviderFilterDecorator
- Remove plugin definitions with non-existing providers.
Namespace
Drupal\migrate\Plugin\DiscoveryCode
public function __construct(DiscoveryInterface $decorated, callable $provider_exists) {
$this->decorated = $decorated;
$this->providerExists = $provider_exists;
}