コード例 #1
0
ファイル: IndexInput.php プロジェクト: Wol/search-module
 /**
  * Set the entry.
  *
  * @param EntryInterface $entry
  * @param                $config
  */
 protected function setEntry(EntryInterface $entry, &$config)
 {
     $config['extra']['entry_id'] = $entry->getId();
     $config['extra']['entry_type'] = get_class($entry);
 }
コード例 #2
0
 /**
  * Return the view URL.
  *
  * @return string
  */
 public function viewUrl()
 {
     return url(implode('/', array_unique(array_filter(['admin', $this->object->getStreamNamespace(), $this->object->getStreamSlug(), 'view', $this->object->getId()]))));
 }