You are here

public function MessageInterface::getText in Message 8

Replace arguments with their placeholders.

Parameters

string $langcode: The language code.

null|int $delta: The delta of the message to return. If NULL all the message text will be returned.

Return value

array The message text.

1 method overrides MessageInterface::getText()
Message::getText in src/Entity/Message.php
Replace arguments with their placeholders.

File

src/MessageInterface.php, line 109

Class

MessageInterface
Provides an interface defining a Message entity.

Namespace

Drupal\message

Code

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