protected function DbReplacer::err in Convert Media Tags to Markup 8
Same name and namespace in other branches
- 2.x src/ConvertMediaTagsToMarkup/DbReplacer.php \Drupal\convert_media_tags_to_markup\ConvertMediaTagsToMarkup\DbReplacer::err()
Log an error.
Parameters
string $err: An error message.
string $log: A log function, for example 'print_r' or 'dpm'.
1 call to DbReplacer::err()
- DbReplacer::replaceAll in src/
ConvertMediaTagsToMarkup/ DbReplacer.php - Replace all instances of legacy media tags in the database to images.
File
- src/
ConvertMediaTagsToMarkup/ DbReplacer.php, line 24
Class
- DbReplacer
- Code to replace all code in the database.
Namespace
Drupal\convert_media_tags_to_markup\ConvertMediaTagsToMarkupCode
protected function err(string $err, $log = 'print_r') {
$log('An error occurred: ' . $err . PHP_EOL);
$this->err = TRUE;
}