You are here

public function MessageInterface::setArguments in Message 8

Set the arguments of the message.

$values = [
  '@name_without_callback' => 'John doe',
  '@name_with_callback' => [
    'callback' => 'User::load',
    'arguments' => [
      1,
    ],
  ],
];

Parameters

array $values: Array of arguments.

Return value

\Drupal\message\MessageInterface Returns the message object.

1 method overrides MessageInterface::setArguments()
Message::setArguments in src/Entity/Message.php
Set the arguments of the message.

File

src/MessageInterface.php, line 87

Class

MessageInterface
Provides an interface defining a Message entity.

Namespace

Drupal\message

Code

public function setArguments(array $values);