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

Some work on style plugins

parent da4d9944
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
...@@ -112,7 +112,7 @@ function views_views_plugins() { ...@@ -112,7 +112,7 @@ function views_views_plugins() {
'default' => array( 'default' => array(
'title' => t('Unformatted list'), 'title' => t('Unformatted list'),
'help' => t('Displays rows one after another.'), 'help' => t('Displays rows one after another.'),
'class' => 'Drupal\views\Plugins\views\style\Default', 'class' => 'Drupal\views\Plugins\views\style\DefaultStyle',
'theme' => 'views_view_unformatted', 'theme' => 'views_view_unformatted',
'uses row plugin' => TRUE, 'uses row plugin' => TRUE,
'uses row class' => TRUE, 'uses row class' => TRUE,
......
...@@ -2,18 +2,18 @@ ...@@ -2,18 +2,18 @@
/** /**
* @file * @file
* Definition of Drupal\views\Plugins\views\style\Default. * Definition of Drupal\views\Plugins\views\style\DefaultStyle.
*/ */
namespace Drupal\views\Plugins\views\style; namespace Drupal\views\Plugins\views\style;
/** /**
* Default style plugin to render rows one after another with no * Unformatted style plugin to render rows one after another with no
* decorations. * decorations.
* *
* @ingroup views_style_plugins * @ingroup views_style_plugins
*/ */
class Default extends StylePluginBase { class DefaultStyle extends StylePluginBase {
/** /**
* Set default options * Set default options
*/ */
......
...@@ -580,7 +580,8 @@ function init_style() { ...@@ -580,7 +580,8 @@ function init_style() {
$this->style_options = $this->display_handler->get_option('style_options'); $this->style_options = $this->display_handler->get_option('style_options');
} }
$this->style_plugin = views_get_plugin('style', $this->plugin_name); $style_manager = new StylePluginManager();
$this->style_plugin = $style_manager->createInstance($this->plugin_name);
if (empty($this->style_plugin)) { if (empty($this->style_plugin)) {
return FALSE; return FALSE;
......
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