protected function MessageTestBase::loadMessageTemplate in Message 8
Load a message template easily.
Parameters
string $template: The template of the message.
Return value
\Drupal\message\Entity\MessageTemplate The message Object.
1 call to MessageTestBase::loadMessageTemplate()
- MessageTemplateCrudTest::testCrudEntityType in tests/
src/ Functional/ MessageTemplateCrudTest.php - Creating/reading/updating/deleting the message template entity and test it.
File
- tests/
src/ Functional/ MessageTestBase.php, line 46
Class
- MessageTestBase
- Holds set of tools for the message testing.
Namespace
Drupal\Tests\message\FunctionalCode
protected function loadMessageTemplate($template) {
return MessageTemplate::load($template);
}