protected function ProcessTrait::displayErrors in Tome 8
Displays errors using the IO component.
Parameters
string[] $collected_errors: An array of error messages to display.
5 calls to ProcessTrait::displayErrors()
- ExportCommand::execute in modules/
tome_sync/ src/ Commands/ ExportCommand.php - ImportCommand::deleteContent in modules/
tome_sync/ src/ Commands/ ImportCommand.php - Deletes content using sub-processes.
- ImportCommand::importChunks in modules/
tome_sync/ src/ Commands/ ImportCommand.php - Imports chunks of content using sub-processes.
- ProcessTrait::runCommand in modules/
tome_base/ src/ ProcessTrait.php - Runs a single command and outputs errors if encountered.
- StaticCommand::exportPaths in modules/
tome_static/ src/ Commands/ StaticCommand.php - Exports the given paths to the static directory.
File
- modules/
tome_base/ src/ ProcessTrait.php, line 113
Class
- ProcessTrait
- Shared methods for running processes.
Namespace
Drupal\tome_baseCode
protected function displayErrors(array $collected_errors) {
foreach ($collected_errors as $error) {
$this
->io()
->error($error);
}
}