function paragraphs_collection_paragraph_access

Implements hook_ENTITY_TYPE_access().

File

paragraphs_collection/paragraphs_collection.module, line 18
Contains paragraphs_collection.module

Code

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));
}