You are here

public function MessageTemplateInterface::getText in Message 8

Retrieves the configured message text in a certain language.

Parameters

string $langcode: The language code of the Message text field, the text should be extracted from.

int $delta: Optional; Represents the partial number. If not provided - all partials will be returned.

Return value

array An array of the text field values. These will have been processed for their corresponding text formats.

1 method overrides MessageTemplateInterface::getText()
MessageTemplate::getText in src/Entity/MessageTemplate.php
Retrieves the configured message text in a certain language.

File

src/MessageTemplateInterface.php, line 111

Class

MessageTemplateInterface
Provides an interface defining a Message template entity.

Namespace

Drupal\message

Code

public function getText($langcode = Language::LANGCODE_NOT_SPECIFIED, $delta = NULL);