Implements hook_ENTITY_TYPE_access().
function paragraphs_collection_paragraph_access(ParagraphInterface $paragraph, $operation, AccountInterface $account) {
$access_result = ParagraphsLockablePlugin::determineParagraphAccess($paragraph, $operation, $account);
return $access_result
->andIf(ParagraphsLanguagePlugin::determineParagraphAccess($paragraph, $operation, $account));
}