Commit 5a3629df authored by dawehner's avatar dawehner Committed by tim.plunkett

Some work on style plugins

parent da4d9944
......@@ -112,7 +112,7 @@ function views_views_plugins() {
'default' => array(
'title' => t('Unformatted list'),
'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',
'uses row plugin' => TRUE,
'uses row class' => TRUE,
......
......@@ -2,18 +2,18 @@
/**
* @file
* Definition of Drupal\views\Plugins\views\style\Default.
* Definition of Drupal\views\Plugins\views\style\DefaultStyle.
*/
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.
*
* @ingroup views_style_plugins
*/
class Default extends StylePluginBase {
class DefaultStyle extends StylePluginBase {
/**
* Set default options
*/
......
......@@ -580,7 +580,8 @@ function init_style() {
$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)) {
return FALSE;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment