Skip to content
Snippets Groups Projects

Issue #3407066: Entity queries must explicitly set whether the query should be...

1 file
+ 4
1
Compare changes
  • Side-by-side
  • Inline
@@ -50,7 +50,10 @@ class MultipleNodeExportForm extends FormBase {
public function submitForm(array &$form, FormStateInterface $form_state) {
$export_type = $form_state->getValue('export_type');
// Loads all the node of selected content type.
$nids = \Drupal::entityQuery('node')->condition('type', $export_type)->execute();
$nids = \Drupal::entityQuery('node')
->accessCheck()
->condition('type', $export_type)
->execute();
$batch = [
'title' => $this->t('Generating Export Code...'),
'operations' => [],
Loading