Some work on style plugins
							parent
							
								
									da4d994453
								
							
						
					
					
						commit
						5a3629df7c
					
				| 
						 | 
				
			
			@ -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 @@ 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;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue