Loading modules/symfony_mailer_bc/symfony_mailer_bc.module +1 −1 Original line number Diff line number Diff line Loading @@ -12,7 +12,7 @@ use Drupal\symfony_mailer\Annotation\EmailBuilder; * Implements hook_theme(). */ function symfony_mailer_bc_theme($existing, $type, $theme, $path) { $templateDir = drupal_get_path('module', 'symfony_mailer_bc') . '/templates'; $templateDir = \Drupal::service('extension.list.module')->getPath('symfony_mailer_bc') . '/templates'; $hooks = []; foreach (glob("$templateDir/email--*") as $template) { $theme = strtr(basename($template, '.html.twig'), '-', '_'); Loading modules/symfony_mailer_bc/tests/src/Functional/TestBcMail.php +1 −1 Original line number Diff line number Diff line Loading @@ -26,7 +26,7 @@ class TestBcMail extends SymfonyMailerTestBase { /** * {@inheritdoc} */ protected function setUp() { protected function setUp(): void { parent::setUp(); $this->adminUser = $this->drupalCreateUser([ 'administer mailer', Loading tests/src/Functional/SymfonyMailerTestBase.php +2 −2 Original line number Diff line number Diff line Loading @@ -43,7 +43,7 @@ abstract class SymfonyMailerTestBase extends BrowserTestBase { /** * {@inheritdoc} */ protected function setUp() { protected function setUp(): void { parent::setUp(); $this->config('system.site')->set('name', $this->siteName)->save(); $this->adminUser = $this->drupalCreateUser(['administer mailer']); Loading @@ -52,7 +52,7 @@ abstract class SymfonyMailerTestBase extends BrowserTestBase { /** * {@inheritdoc} */ protected function tearDown() { protected function tearDown(): void { parent::tearDown(); // @todo Test for no mail not working? $this->noMail(); Loading Loading
modules/symfony_mailer_bc/symfony_mailer_bc.module +1 −1 Original line number Diff line number Diff line Loading @@ -12,7 +12,7 @@ use Drupal\symfony_mailer\Annotation\EmailBuilder; * Implements hook_theme(). */ function symfony_mailer_bc_theme($existing, $type, $theme, $path) { $templateDir = drupal_get_path('module', 'symfony_mailer_bc') . '/templates'; $templateDir = \Drupal::service('extension.list.module')->getPath('symfony_mailer_bc') . '/templates'; $hooks = []; foreach (glob("$templateDir/email--*") as $template) { $theme = strtr(basename($template, '.html.twig'), '-', '_'); Loading
modules/symfony_mailer_bc/tests/src/Functional/TestBcMail.php +1 −1 Original line number Diff line number Diff line Loading @@ -26,7 +26,7 @@ class TestBcMail extends SymfonyMailerTestBase { /** * {@inheritdoc} */ protected function setUp() { protected function setUp(): void { parent::setUp(); $this->adminUser = $this->drupalCreateUser([ 'administer mailer', Loading
tests/src/Functional/SymfonyMailerTestBase.php +2 −2 Original line number Diff line number Diff line Loading @@ -43,7 +43,7 @@ abstract class SymfonyMailerTestBase extends BrowserTestBase { /** * {@inheritdoc} */ protected function setUp() { protected function setUp(): void { parent::setUp(); $this->config('system.site')->set('name', $this->siteName)->save(); $this->adminUser = $this->drupalCreateUser(['administer mailer']); Loading @@ -52,7 +52,7 @@ abstract class SymfonyMailerTestBase extends BrowserTestBase { /** * {@inheritdoc} */ protected function tearDown() { protected function tearDown(): void { parent::tearDown(); // @todo Test for no mail not working? $this->noMail(); Loading