diff --git a/src/customizations/volto/actions/content/content.js b/src/customizations/volto/actions/content/content.js index 68763ae..abb9334 100644 --- a/src/customizations/volto/actions/content/content.js +++ b/src/customizations/volto/actions/content/content.js @@ -13,6 +13,7 @@ import { UPDATECOLUMNS_CONTENT, LOCK_CONTENT, UNLOCK_CONTENT, + LINK_INTEGRITY_CHECK, } from '@plone/volto/constants/ActionTypes'; import { nestContent } from '@plone/volto/helpers'; import config from '@plone/volto/registry'; @@ -250,3 +251,14 @@ export function unlockContent(urls, force = false) { })), }; } + +export function linkIntegrityCheck(selection) { + return { + type: LINK_INTEGRITY_CHECK, + mode: 'serial', + request: { + op: 'get', + path: '@linkintegrity?' + selection.map((uid) => `uids=${uid}`).join('&'), + }, + }; +}