/** * 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); }
/** * 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()])))); }