@codeCoverageIgnore
Overrides AbstractEntityBodyDecorator::write
public function write($string) {
$event = array(
'body' => $this,
'write' => $string,
'result' => $this->body
->write($string),
);
$this
->dispatch('body.write', $event);
return $event['result'];
}