Back to OnGetApiAttributes class

Method addAttributes

public void
addAttributes
(array $value)
Set attributes to be rendered in the API.
Parameters
  • array $value An array of key/value pairs for properties to be added to the api.
Returns
  • void
Since
  • 4.0.0

Method addAttributes - Source code

/**
 * Set attributes to be rendered in the API.
 *
 * @param   array  $value  An array of key/value pairs for properties to be added to the api.
 *
 * @return  void
 * @since   4.0.0
 */
public function addAttributes(array $value) : void
{
    $this->attributes = array_merge($this->attributes, $value);
}