/** * {@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; }
/** * 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; }
/** * 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; }
/** * {@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; }