You are here

abstract class ConfigImportValidateEventSubscriberBase in Drupal 10

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/Config/ConfigImportValidateEventSubscriberBase.php \Drupal\Core\Config\ConfigImportValidateEventSubscriberBase
  2. 9 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/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\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

Namesort descending Modifiers Type Description 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. 1
StringTranslationTrait::t protected function Translates a string to the current language or to a given language.