public function executeAddresses($request) { $this->setResponseFormat(array('json')); $this->data = EntityApi::getAddresses($this->entity['id']); return $this->renderText(json_encode($this->data)); }