Esempio n. 1
0
 /**
  * {@inheritdoc}
  */
 public function getRawValue(ResultRecordInterface $record)
 {
     $label = null;
     try {
         $label = $record->getValue($this->getOr(self::DATA_NAME_KEY, $this->get(self::NAME_KEY)));
     } catch (\LogicException $e) {
     }
     return $this->twig->loadTemplate(self::TEMPLATE)->render(['url' => parent::getRawValue($record), 'label' => $label]);
 }
 /**
  * Constructor
  *
  * @param Router        $router
  * @param ActionFactory $actionFactory
  */
 public function __construct(Router $router, ActionFactory $actionFactory)
 {
     parent::__construct($router);
     $this->actionFactory = $actionFactory;
 }