public function ComposerDependenciesCheck::__construct in CloudFlare 8
Same name in this branch
- 8 src/ComposerDependenciesCheck.php \Drupal\cloudflare\ComposerDependenciesCheck::__construct()
- 8 modules/cloudflarepurger/src/Plugin/Purge/DiagnosticCheck/ComposerDependenciesCheck.php \Drupal\cloudflarepurger\Plugin\Purge\DiagnosticCheck\ComposerDependenciesCheck::__construct()
Constructs a ComposerDependenciesCheck diagnostic check object.
Parameters
array $configuration: A configuration array containing information about the plugin instance.
string $plugin_id: The plugin_id for the plugin instance.
mixed $plugin_definition: The plugin implementation definition.
\Drupal\cloudflare\CloudFlareComposerDependenciesCheckInterface $check_interface: Checks that the composer dependencies for CloudFlare are met.
Overrides PluginBase::__construct
File
- modules/
cloudflarepurger/ src/ Plugin/ Purge/ DiagnosticCheck/ ComposerDependenciesCheck.php, line 43
Class
- ComposerDependenciesCheck
- Checks that the CloudFlareApi Composer Dependency is installed on the system.
Namespace
Drupal\cloudflarepurger\Plugin\Purge\DiagnosticCheckCode
public function __construct(array $configuration, $plugin_id, $plugin_definition, CloudFlareComposerDependenciesCheckInterface $check_interface) {
parent::__construct($configuration, $plugin_id, $plugin_definition);
$this->areCloudFlareComposerDependenciesMet = $check_interface
->check();
}