Skip to content
Snippets Groups Projects
Commit 771a29d7 authored by Project Update Bot's avatar Project Update Bot Committed by Steve Wirt
Browse files

Issue #3297330 by Project Update Bot, edmund.dunn: Automated Drupal 10 compatibility fixes

parent 89dbfe5c
No related branches found
No related tags found
No related merge requests found
......@@ -3,5 +3,4 @@ description: Provides service and queue for sending bulletins using GovDelivery
configure: govdelivery_bulletins.govdelivery_bulletins_admin_form
package: Web Services
type: module
core: 8.x
core_version_requirement: ^8 || ^9
core_version_requirement: ^9.3 || ^10
......@@ -297,7 +297,7 @@ class AddBulletinToQueue {
$template_variables = [
'email_addresses' => $this->emailAddresses,
];
$xml = (string) twig_render_template(drupal_get_path('module', 'govdelivery_bulletins') . '/templates/govdelivery-bulletin-test-xml.html.twig', $template_variables);
$xml = (string) twig_render_template(\Drupal::service('extension.list.module')->getPath('govdelivery_bulletins') . '/templates/govdelivery-bulletin-test-xml.html.twig', $template_variables);
}
elseif (!$this->flag_test && $this->validate($error_messages)) {
// This is not a test and is valid.
......@@ -318,7 +318,7 @@ class AddBulletinToQueue {
'topics' => $this->topics,
'urgent' => $this->urgent,
];
$xml = (string) twig_render_template(drupal_get_path('module', 'govdelivery_bulletins') . '/templates/govdelivery-bulletin-xml.html.twig', $template_variables);
$xml = (string) twig_render_template(\Drupal::service('extension.list.module')->getPath('govdelivery_bulletins') . '/templates/govdelivery-bulletin-xml.html.twig', $template_variables);
}
else {
// Nothing validated so log and throw an exception with $error_messages.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment