public function LibraryItemAccessControlHandler::checkCreateAccess

File

paragraphs/modules/paragraphs_library/src/LibraryItemAccessControlHandler.php, line 55

Class

LibraryItemAccessControlHandler
Access control handler for the paragraphs_library_item entity type.

Namespace

Drupal\paragraphs_library

Code

public function checkCreateAccess(AccountInterface $account, array $context, $entity_bundle = NULL) {
  return AccessResult::allowedIfHasPermission($account, 'create paragraph library item')
    ->orIf(parent::checkCreateAccess($account, $context, $entity_bundle));
}