예제 #1
0
 /**
  * {@inheritdoc}
  */
 protected function defineOptions()
 {
     $options = parent::defineOptions();
     $options['vis'] = array('contains' => array('fetch_option' => array('default' => 'infinite_scroll'), 'manual_load' => array('default' => FALSE), 'manual_load_text' => array('default' => $this->t('Load More')), 'loading_text' => array('default' => $this->t('Loading...')), 'row_class' => array('default' => $this->t('Class'))));
     $options['output'] = array('contains' => array('animate' => array('default' => TRUE), 'animate_effect' => array('default' => TRUE)));
     return $options;
 }
예제 #2
0
파일: Full.php 프로젝트: nsp15/Drupal8
 /**
  * Overrides \Drupal\views\Plugin\views\SqlBase::defineOptions().
  */
 protected function defineOptions()
 {
     $options = parent::defineOptions();
     // Use the same default quantity that core uses by default.
     $options['quantity'] = array('default' => 9);
     $options['tags']['contains']['first'] = array('default' => $this->t('« first'));
     $options['tags']['contains']['last'] = array('default' => $this->t('last »'));
     return $options;
 }
예제 #3
0
 /**
  * Overrides \Drupal\views\Plugin\views\SqlBase::defineOptions().
  */
 protected function defineOptions()
 {
     $options = parent::defineOptions();
     // Use the same default quantity that core uses by default.
     $options['quantity'] = array('default' => 9);
     $options['tags']['contains']['first'] = array('default' => '« first', 'translatable' => TRUE);
     $options['tags']['contains']['last'] = array('default' => 'last »', 'translatable' => TRUE);
     return $options;
 }
예제 #4
0
 /**
  * {@inheritdoc}
  */
 protected function defineOptions()
 {
     $options = parent::defineOptions();
     $options['views_infinite_scroll'] = ['contains' => ['button_text' => ['default' => $this->t('Load More')], 'automatically_load_content' => ['default' => FALSE]]];
     return $options;
 }