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).
Uses 10
Used by 1
Constants and properties
| private | readonly Minn\Content\PostWriter $writer | Promoted from the constructor. |
| private | readonly Minn\Rest\Caller $caller | Promoted from the constructor. |
Public
| new | __construct(Minn\Content\PostWriter $writer, Minn\Rest\Caller $caller)# | |
| method | lock(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. |
| method | unlock(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. |
| method | templates(Minn\Http\Request $request): Minn\Http\ResponseGET /minn-admin/v1/templates (floor edit_posts)# | No theme, no page templates: an honest empty set. |
| method | patterns(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. |
Nothing matches.