Some work on style plugins

8.0.x
Daniel Wehner 2012-07-26 14:11:47 -05:00 committed by Tim Plunkett
parent da4d994453
commit 5a3629df7c
3 changed files with 6 additions and 5 deletions

View File

@ -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,

View File

@ -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
*/

View File

@ -580,7 +580,8 @@ class View extends ViewsDbObject {
$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;