You are here

public function CommonUtilities::watchdogError in Convert Media Tags to Markup 8

Same name and namespace in other branches
  1. 2.x src/traits/CommonUtilities.php \Drupal\convert_media_tags_to_markup\traits\CommonUtilities::watchdogError()

Log an error to the watchdog.

Parameters

string $string: String to be logged.

Throws

Exception

File

src/traits/CommonUtilities.php, line 97

Class

CommonUtilities
General utilities trait.

Namespace

Drupal\convert_media_tags_to_markup\traits

Code

public function watchdogError(string $string) {
  \Drupal::logger('steward_common')
    ->error($string);
}