API / Minn\Admin / EditorController

EditorController final readonly class

Minn\Admin\EditorController · public/minn/src/Minn/Admin/EditorController.php · 31 lines

The editor's edit lock in minn-admin/v1. Its template and pattern lists are Minn Admin's own routes, answered by the plugin from the theme and the pattern registry.

Used by 1

Constants and properties

privatereadonly Minn\Content\PostWriter $writer

Promoted from the constructor.

privatereadonly Minn\Rest\Caller $caller

Promoted from the constructor.

Public

new__construct(Minn\Content\PostWriter $writer, Minn\Rest\Caller $caller)#
methodlock(Minn\Http\Request $request, string $id): Minn\Http\ResponsePOST /minn-admin/v1/posts/{id:\d+}/lock (floor edit_posts)#

Takes the edit lock on a post.

methodunlock(Minn\Http\Request $request, string $id): Minn\Http\ResponsePOST /minn-admin/v1/posts/{id:\d+}/unlock (floor edit_posts)#

Releases the edit lock on a post.