{"ok": true, "next": null, "rows": [{"id": "plugin_hooks:plugin-hook-homepage-actions", "page": "plugin_hooks", "ref": "plugin-hook-homepage-actions", "title": "homepage_actions(datasette, actor, request)", "content": "datasette  -  Datasette class \n                         \n                             You can use this to access plugin configuration options via  datasette.plugin_config(your_plugin_name) , or to execute SQL queries. \n                         \n                     \n                     \n                         actor  - dictionary or None \n                         \n                             The currently authenticated  actor . \n                         \n                     \n                     \n                         request  -  Request object \n                         \n                             The current HTTP request. \n                         \n                     \n                 \n                 Populates an actions menu on the top-level index homepage of the Datasette instance. \n                 This example adds a link an imagined tool for editing the homepage, only for signed in users: \n                 from datasette import hookimpl\n\n\n@hookimpl\ndef homepage_actions(datasette, actor):\n    if actor:\n        return [\n            {\n                \"href\": datasette.urls.path(\n                    \"/-/customize-homepage\"\n                ),\n                \"label\": \"Customize homepage\",\n            }\n        ]", "breadcrumbs": "[\"Plugin hooks\", \"Action hooks\"]", "references": "[]"}], "truncated": false}