abstract class ConfigImportValidateEventSubscriberBase in Drupal 10
Same name and namespace in other branches
- 8 core/lib/Drupal/Core/Config/ConfigImportValidateEventSubscriberBase.php \Drupal\Core\Config\ConfigImportValidateEventSubscriberBase
- 9 core/lib/Drupal/Core/Config/ConfigImportValidateEventSubscriberBase.php \Drupal\Core\Config\ConfigImportValidateEventSubscriberBase
Defines a base event listener implementation for config sync validation.
Hierarchy
- class \Drupal\Core\Config\ConfigImportValidateEventSubscriberBase implements \Symfony\Component\EventDispatcher\EventSubscriberInterface uses StringTranslationTrait
Expanded class hierarchy of ConfigImportValidateEventSubscriberBase
4 files declare their use of ConfigImportValidateEventSubscriberBase
- BundleConfigImportValidate.php in core/
lib/ Drupal/ Core/ Entity/ Event/ BundleConfigImportValidate.php - ConfigImportSubscriber.php in core/
lib/ Drupal/ Core/ EventSubscriber/ ConfigImportSubscriber.php - ConfigImportSubscriber.php in core/
modules/ content_moderation/ src/ EventSubscriber/ ConfigImportSubscriber.php - ConfigSubscriber.php in core/
modules/ config/ src/ ConfigSubscriber.php
File
- core/
lib/ Drupal/ Core/ Config/ ConfigImportValidateEventSubscriberBase.php, line 11
Namespace
Drupal\Core\ConfigView source
abstract class ConfigImportValidateEventSubscriberBase implements EventSubscriberInterface {
use StringTranslationTrait;
/**
* Checks that the configuration synchronization is valid.
*
* @param ConfigImporterEvent $event
* The config import event.
*/
public abstract function onConfigImporterValidate(ConfigImporterEvent $event);
/**
* {@inheritdoc}
*/
public static function getSubscribedEvents() : array {
$events[ConfigEvents::IMPORT_VALIDATE][] = [
'onConfigImporterValidate',
20,
];
return $events;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
ConfigImportValidateEventSubscriberBase:: |
public static | function | 1 | |
ConfigImportValidateEventSubscriberBase:: |
abstract public | function | Checks that the configuration synchronization is valid. | 4 |
StringTranslationTrait:: |
protected | property | The string translation service. | 3 |
StringTranslationTrait:: |
protected | function | Formats a string containing a count of items. | |
StringTranslationTrait:: |
protected | function | Returns the number of plurals supported by a given language. | |
StringTranslationTrait:: |
protected | function | Gets the string translation service. | |
StringTranslationTrait:: |
public | function | Sets the string translation service to use. | 1 |
StringTranslationTrait:: |
protected | function | Translates a string to the current language or to a given language. |