You are here

public function BuildHookDetails::setBody in Build Hooks 8.2

Same name and namespace in other branches
  1. 3.x src/BuildHookDetails.php \Drupal\build_hooks\BuildHookDetails::setBody()

Set the body.

Parameters

array $body: The array.

Deprecated

in build_hooks:8.x-2.4 and is removed from build_hooks:8.x-3.0. The setBody() method is depcrecated. Use setOptions() method instead.

See also

https://www.drupal.org/node/3173753

File

src/BuildHookDetails.php, line 119

Class

BuildHookDetails
Class BuildHookDetails.

Namespace

Drupal\build_hooks

Code

public function setBody(array $body) {
  @trigger_error(__METHOD__ . ' is deprecated in build_hooks:8.x-2.4 and is removed from build_hooks:8.x-3.0. Instead, you should use Drupal\\build_hooks\\BuildHookDetails::setOptions. See https://www.drupal.org/node/3173753', E_USER_DEPRECATED);
  $this->options = $body;
}