Ejemplo n.º 1
0
 /**
  * Overrides \Drupal\views\Plugin\views\displays\DisplayPluginBase::defaultableSections().
  */
 public function defaultableSections($section = NULL)
 {
     $sections = parent::defaultableSections($section);
     if (in_array($section, array('style', 'row'))) {
         return FALSE;
     }
     // Tell views our sitename_title option belongs in the title section.
     if ($section == 'title') {
         $sections[] = 'sitename_title';
     } elseif (!$section) {
         $sections['title'][] = 'sitename_title';
     }
     return $sections;
 }