You are here

public function ImageEffectsUninstallValidator::__construct in Image Effects 8.3

Same name in this branch
  1. 8.3 src/ImageEffectsUninstallValidator.php \Drupal\image_effects\ImageEffectsUninstallValidator::__construct()
  2. 8.3 src/ProxyClass/ImageEffectsUninstallValidator.php \Drupal\image_effects\ProxyClass\ImageEffectsUninstallValidator::__construct()
Same name and namespace in other branches
  1. 8 src/ImageEffectsUninstallValidator.php \Drupal\image_effects\ImageEffectsUninstallValidator::__construct()
  2. 8.2 src/ImageEffectsUninstallValidator.php \Drupal\image_effects\ImageEffectsUninstallValidator::__construct()

Constructs a new ImageEffectsUninstallValidator.

Parameters

\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The configuration factory.

\Drupal\Core\StringTranslation\TranslationInterface $string_translation: The string translation service.

File

src/ImageEffectsUninstallValidator.php, line 32

Class

ImageEffectsUninstallValidator
Prevents uninstalling modules that Image Effects configuration require.

Namespace

Drupal\image_effects

Code

public function __construct(ConfigFactoryInterface $config_factory, TranslationInterface $string_translation) {
  $this->configFactory = $config_factory;
  $this->stringTranslation = $string_translation;
}