Back to JsonapiDocument class

Method addMeta

public $this
addMeta
(mixed $key, mixed $value)
Add a link to the output.
Parameters
  • string $key The name of the metadata key
  • string $value The value
Returns
  • $this
Since
  • 4.0.0

Method addMeta - Source code

/**
 * Add a link to the output.
 *
 * @param   string  $key    The name of the metadata key
 * @param   string  $value  The value
 *
 * @return  $this
 *
 * @since  4.0.0
 */
public function addMeta($key, $value)
{
    $this->document->addMeta($key, $value);
    return $this;
}