function ProviderFilterDecorator::__construct
Same name in other branches
- 9 core/modules/migrate/src/Plugin/Discovery/ProviderFilterDecorator.php \Drupal\migrate\Plugin\Discovery\ProviderFilterDecorator::__construct()
- 8.9.x core/modules/migrate/src/Plugin/Discovery/ProviderFilterDecorator.php \Drupal\migrate\Plugin\Discovery\ProviderFilterDecorator::__construct()
- 10 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;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.