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.
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. |
Nothing matches.