API / Minn\Admin / EditorController

EditorController final readonly class

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

The editor's helpers in minn-admin/v1: the edit lock, and the template and pattern lists (honestly empty: the engine carries no theme content).

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.

methodtemplates(Minn\Http\Request $request): Minn\Http\ResponseGET /minn-admin/v1/templates (floor edit_posts)#

No theme, no page templates: an honest empty set.

methodpatterns(Minn\Http\Request $request): Minn\Http\ResponseGET /minn-admin/v1/patterns (floor edit_posts)#

Theme patterns are GPL theme content the engine does not carry.