Exemplo n.º 1
0
 /**
  * @param Identifier $value
  * @return mixed
  */
 public function render($value)
 {
     $caption = (new \ReflectionClass($value->getTarget()))->getShortName();
     $out = $value->getId();
     $dropDown = $this->links->createDropDown($value, $caption);
     if ($dropDown) {
         $out .= new Element('span', ['class' => 'pull-right'], $dropDown);
     }
     return $out;
 }
Exemplo n.º 2
0
 /**
  * @param Identifier $value
  * @return mixed
  */
 public function render($value)
 {
     return $value->getId();
 }