/** * @throws \rg\injektor\InjectionException * @throws \Exception * @return array * @internal */ public function getData() { return ['publicationUid' => $this->publication->getPublicationUid(), 'abstract' => $this->publicationViewProvider->getAbstract($this->publication), 'canEdit' => $this->isEditingAllowed(), 'isAdmin' => $this->session->isScientistLoggedIn() && $this->isAdminEditingAllowed($this->requestContext->getCurrentAccountId()), 'isArtifact' => $this->publication->getPublicationType() === Publication::TYPE_ARTIFACT, 'showFullAbstract' => !$this->session->isAccountLoggedIn() && (!$this->preferredLink || $this->alwaysShowAbstractLoggedOut)]; }