You are here

public function MessageArgumentInterface::getNameArgument in Message 7

The method return information about the arguments for the message and the callbacks which responsible to compute the argument value.

return array(
  '@name' => array(
    $this,
    'processName',
  ),
  '%time' => array(
    $this,
    'processTime',
  ),
  '!link' => array(
    $this,
    'processLink',
  ),
);

The callback will return the value for the argument. The message object can be access via the getMessage() method.

Return value

array Associate array with the name of the argument and the callback responsible to compute the argument value.

1 call to MessageArgumentInterface::getNameArgument()
MessageArgumentsBase::getArguments in includes/MessageArgumentsBase.php
Retrieve the arguments info.
1 method overrides MessageArgumentInterface::getNameArgument()
MessageExampleArguments::getNameArgument in message_example/plugins/computed_arguments/example_arguments/MessageExampleArguments.class.php

File

includes/MessageArgumentInterface.php, line 49

Class

MessageArgumentInterface
Contains MessageArgumentInterface.

Code

public function getNameArgument();