class ConfigImportValidateEventSubscriberBase

Same name in other branches
  1. 9 core/lib/Drupal/Core/Config/ConfigImportValidateEventSubscriberBase.php \Drupal\Core\Config\ConfigImportValidateEventSubscriberBase
  2. 8.9.x core/lib/Drupal/Core/Config/ConfigImportValidateEventSubscriberBase.php \Drupal\Core\Config\ConfigImportValidateEventSubscriberBase
  3. 10 core/lib/Drupal/Core/Config/ConfigImportValidateEventSubscriberBase.php \Drupal\Core\Config\ConfigImportValidateEventSubscriberBase

Defines a base event listener implementation for config sync validation.

Hierarchy

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/modules/content_moderation/src/EventSubscriber/ConfigImportSubscriber.php
ConfigImportSubscriber.php in core/lib/Drupal/Core/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\Config
View 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

Title Sort descending Modifiers Object type Summary Overrides
ConfigImportValidateEventSubscriberBase::getSubscribedEvents public static function 1
ConfigImportValidateEventSubscriberBase::onConfigImporterValidate abstract public function Checks that the configuration synchronization is valid. 4
StringTranslationTrait::$stringTranslation protected property The string translation service. 3
StringTranslationTrait::formatPlural protected function Formats a string containing a count of items.
StringTranslationTrait::getNumberOfPlurals protected function Returns the number of plurals supported by a given language.
StringTranslationTrait::getStringTranslation protected function Gets the string translation service.
StringTranslationTrait::setStringTranslation public function Sets the string translation service to use. 2
StringTranslationTrait::t protected function Translates a string to the current language or to a given language.

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.