public function render($item) { if ($this->getType() == 'block') { throw new DataGridItemDetailException('ItemDetail is set to render as block, but block #detail is not defined'); } return call_user_func($this->getRenderer(), $item); }