You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| components.dateTimePicker | Settings associated with the DateTimePicker component used to set action times | Object | {} | No |
75
114
| components.dateTimePicker.step | The step between the numbers displayed for the time section of the DateTimePicker | Number | 1 | No |
76
115
| components.dateTimePicker.locale | Allows to enforce another locale to change the date layout | String | browser locale | No |
77
-
| hooks.beforePublish | An async function that runs before a content type is published | Function | () => {} | No |
116
+
| hooks.beforePublish | An async function that runs before a content type is published. Return false to cancel publish.| Function | () => {} | No |
78
117
| hooks.afterPublish | An async function that runs after a content type is published | Function | () => {} | No |
79
-
| hooks.beforeUnpublish | An async function that runs before a content type is un-published | Function | () => {} | No |
118
+
| hooks.beforeUnpublish | An async function that runs before a content type is un-published. Return false to cancel unpublish.| Function | () => {} | No |
80
119
| hooks.afterUnpublish | An async function that runs after a content type is un-published | Function | () => {} | No |
81
120
| contentTypes | A list of content type uids where the publish actions should be displayed | Array<String> | All content types | No |
strapi.log.info(logMessage(`Publish aborted by beforePublish hook for document id "${entityId}"${locale ? ` and locale "${locale}"` : ''} of type "${uid}".`));
strapi.log.info(logMessage(`Unpublish aborted by beforeUnpublish hook for document id "${entityId}"${locale ? ` and locale "${locale}"` : ''} of type "${uid}".`));
strapi.log.error(logMessage(`An error occurred when trying to unpublish document with id "${entityId}"${locale ? ` and locale "${locale}"` : ''} of type "${uid}": "${error}"`));
0 commit comments