You are here

public function Message::getArguments in Message 8

Retrieve the message arguments.

Return value

array The arguments of the message.

Overrides MessageInterface::getArguments

2 calls to Message::getArguments()
Message::getText in src/Entity/Message.php
Replace arguments with their placeholders.
Message::save in src/Entity/Message.php
Saves an entity permanently.

File

src/Entity/Message.php, line 143

Class

Message
Defines the Message entity class.

Namespace

Drupal\message\Entity

Code

public function getArguments() {
  $arguments = $this
    ->get('arguments')
    ->first();
  return $arguments ? $arguments
    ->getValue() : [];
}