You are here

function paragraphs_collection_paragraph_access in Paragraphs Collection 8

Implements hook_ENTITY_TYPE_access().

File

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