Skip to content
Snippets Groups Projects
Commit 44c25bdf authored by Daniel Wehner's avatar Daniel Wehner Committed by Tim Plunkett
Browse files

use views_get_plugin instead of using the plugin manager manually

parent 5cd37877
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -472,8 +472,7 @@ function init_display($reset = FALSE) {
$this->display[$id] = clone $this->display[$id];
unset($this->display[$id]->handler);
}
$plugin_manager = new DisplayPluginManager();
$this->display[$id]->handler = $plugin_manager->createInstance($this->display[$id]->display_plugin);
$this->display[$id]->handler = views_get_plugin('display', $this->display[$id]->display_plugin);
if (!empty($this->display[$id]->handler)) {
$this->display[$id]->handler->localization_keys = array($id);
// Initialize the new display handler with data.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment