return $this->editor;
}
+ /**
+ * Set the current user context to be a viewer.
+ */
+ public function asViewer()
+ {
+ return $this->actingAs($this->getViewer());
+ }
+
/**
* Get an instance of a user with 'viewer' permissions.
*/
}
/**
- * @return Entity[]
+ * @return array{page: Page, chapter: Chapter, book: Book, bookshelf: Bookshelf}
*/
protected function getEachEntityType(): array
{