πŸ‡ΊπŸ‡ΈUnited States @jamesini

Tacoma, Washington
Account created on 19 February 2013, over 11 years ago
#

Recent comments

πŸ‡ΊπŸ‡ΈUnited States jamesini Tacoma, Washington

I applied the patches provided by Merge Request 43 from Comment #10 and it resolved the issue -- i.e. after making an edit to a Paragraph using the Paragraphs Edit module, the Content Lock module correctly redirects the user back to the ultimate parent node.

Thanks, and well done @alexpott!

-James

πŸ‡ΊπŸ‡ΈUnited States jamesini Tacoma, Washington

In the Query section, it would be nice to add the accessCheck() method to the code example.  At least on 10.0.8 I get a gnarly 500 error every time I forget to add the accessCheck().

$nodeStorage = \Drupal::entityTypeManager()->getStorage('node');
    
$ids = $nodeStorage->getQuery()
  ->accessCheck(TRUE)
  ->condition('status', 1)
  ->condition('type', 'article') // type = bundle id (machine name)
  //->sort('created', 'ASC') // sorted by time of creation
  //->pager(15) // limit 15 items
  ->execute();

$articles = $nodeStorage->loadMultiple($ids);
Production build 0.69.0 2024