/** * @param ActionPanel $value * @return mixed */ public function render($value) { $heading = $this->actions->getAction($value->getActionId())->caption(); return (string) (new Panel($heading, $this->getContent($value)))->setMaxHeight($value->getMaxHeight())->setRightHeading([new Element('a', ['href' => (string) Url::relative($value->getActionId(), $value->getParameters())], [new Element('span', ['class' => 'glyphicon glyphicon-circle-arrow-right'])])])->render($this->renderers); }
/** * @param ActionPanel $value * @return mixed */ public function render($value) { $heading = $this->actions->getAction($value->getActionId())->caption(); return (string) (new Panel($heading, $this->getContent($value)))->setMaxHeight($value->getMaxHeight())->setRightHeading([new Element('a', ['href' => $this->baseUrl->appended($value->getActionId())->withParameters(Map::toCollections($value->getParameters()))], [new Element('span', ['class' => 'glyphicon glyphicon-circle-arrow-right'])])])->render($this->renderers); }