public static YamlPecl::errorHandler($severity, $message)
Handles errors for \Drupal\Component\Serialization\YamlPecl::decode().
Parameters
int $severity: The severity level of the error.
string $message: The error message to display.
See also
\Drupal\Component\Serialization\YamlPecl::decode()
File
- core/lib/Drupal/Component/Serialization/YamlPecl.php, line 61
Class
- YamlPecl
- Provides default serialization for YAML using the PECL extension.
Namespace
Drupal\Component\Serialization
Code
public static function errorHandler($severity, $message) { restore_error_handler(); throw new InvalidDataTypeException($message, $severity); }
Please login to continue.