function ConfigImporter::logError

Same name in other branches
  1. 9 core/lib/Drupal/Core/Config/ConfigImporter.php \Drupal\Core\Config\ConfigImporter::logError()
  2. 8.9.x core/lib/Drupal/Core/Config/ConfigImporter.php \Drupal\Core\Config\ConfigImporter::logError()
  3. 11.x core/lib/Drupal/Core/Config/ConfigImporter.php \Drupal\Core\Config\ConfigImporter::logError()

Logs an error message.

Parameters

string $message: The message to log.

3 calls to ConfigImporter::logError()
ConfigImporter::checkOp in core/lib/Drupal/Core/Config/ConfigImporter.php
Checks that the operation is still valid.
ConfigImporter::processConfiguration in core/lib/Drupal/Core/Config/ConfigImporter.php
Processes a configuration change.
ConfigImporter::validate in core/lib/Drupal/Core/Config/ConfigImporter.php
Dispatches validate event for a ConfigImporter object.

File

core/lib/Drupal/Core/Config/ConfigImporter.php, line 232

Class

ConfigImporter
Defines a configuration importer.

Namespace

Drupal\Core\Config

Code

public function logError($message) {
    $this->errors[] = $message;
}

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