Skip to content
This repository has been archived by the owner on Jan 5, 2018. It is now read-only.

Commit

Permalink
Remove core that was left out when trying to make exposed filters work.
Browse files Browse the repository at this point in the history
  • Loading branch information
slashrsm committed Jul 14, 2015
1 parent a7e8318 commit 25754fd
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/Plugin/EntityBrowser/Widget/View.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,7 @@ public function getForm(array &$original_form, FormStateInterface $form_state, a
}
}

\Drupal::requestStack()->push(new Request());
$form['view'] = $storage['widget_view']->executeDisplay($this->configuration['view_display']);
\Drupal::requestStack()->pop();

if (empty($storage['widget_view']->field['entity_browser_select'])) {
return [
Expand All @@ -78,11 +76,8 @@ public function getForm(array &$original_form, FormStateInterface $form_state, a
}
}

$form['view']['exposed_form'] = $form['view']['view']['#view']->exposed_widgets;
$form['view']['exposed_form']['#type'] = 'container';
unset($form['view']['exposed_form']['#theme']);
$form['view']['view'] = [
'#markup' => drupal_render($form['view']['view']),
'#markup' => \Drupal::service('renderer')->render($form['view']['view']),
];

return $form;
Expand Down

0 comments on commit 25754fd

Please sign in to comment.