Exemplo n.º 1
0
 protected function defineOptions()
 {
     $options = parent::defineOptions();
     $options['text'] = array('default' => '');
     $options['link_to_entity'] = array('default' => FALSE);
     return $options;
 }
Exemplo n.º 2
0
  /**
   * Define the available options
   * @return array
   */
  protected function defineOptions() {
    $options = parent::defineOptions();
    $options['link_photo'] = array('default' => '');
    $options['image_style'] = array('default' => '');

    return $options;
  }
Exemplo n.º 3
0
 /**
  * {@inheritdoc}
  */
 protected function defineOptions()
 {
     $options = parent::defineOptions();
     $options['link_to_user'] = array('default' => FALSE, 'bool' => TRUE);
     $options['format'] = array('default' => 'first_last');
     return $options;
 }
Exemplo n.º 4
0
 /**
  * {@inheritdoc}
  */
 public function defineOptions()
 {
     $options = parent::defineOptions();
     $options['fields'] = array('default' => array());
     $options['destination'] = array('default' => TRUE);
     return $options;
 }
Exemplo n.º 5
0
 /**
  * {@inheritdoc}
  */
 protected function defineOptions()
 {
     $options = parent::defineOptions();
     $options['data_module'] = array('default' => '');
     $options['data_name'] = array('default' => '');
     return $options;
 }
Exemplo n.º 6
0
 /**
  * {@inheritdoc}
  */
 protected function defineOptions()
 {
     $options = parent::defineOptions();
     $options['fields'] = array('default' => array());
     $options['destination'] = array('default' => 1);
     return $options;
 }
Exemplo n.º 7
0
 protected function defineOptions()
 {
     $options = parent::defineOptions();
     $options['link_to_comment'] = array('default' => TRUE, 'bool' => TRUE);
     $options['link_to_entity'] = array('default' => FALSE, 'bool' => TRUE);
     return $options;
 }
Exemplo n.º 8
0
 protected function defineOptions()
 {
     $options = parent::defineOptions();
     $options['format'] = array('default' => 'unserialized');
     $options['key'] = array('default' => '');
     return $options;
 }
Exemplo n.º 9
0
 protected function defineOptions()
 {
     $options = parent::defineOptions();
     $options['link_to_taxonomy'] = array('default' => FALSE, 'bool' => TRUE);
     $options['convert_spaces'] = array('default' => FALSE, 'bool' => TRUE);
     return $options;
 }
Exemplo n.º 10
0
 /**
  * {@inheritdoc}
  */
 protected function defineOptions()
 {
     $options = parent::defineOptions();
     $options['type'] = array('default' => 'separator');
     $options['separator'] = array('default' => ', ');
     return $options;
 }
Exemplo n.º 11
0
 protected function defineOptions()
 {
     $options = parent::defineOptions();
     $options['text'] = array('default' => '', 'translatable' => TRUE);
     $options['link_to_entity'] = array('default' => FALSE, 'bool' => TRUE);
     return $options;
 }
Exemplo n.º 12
0
 /**
  * {@inheritdoc}
  */
 protected function defineOptions()
 {
     $options = parent::defineOptions();
     $options['show_link'] = array('default' => FALSE);
     $options['show_link_options']['contains'] = array('link_path' => array('default' => ''), 'link_text' => array('default' => ''), 'link_class' => array('default' => ''), 'link_title' => array('default' => ''), 'link_rel' => array('default' => ''), 'link_fragment' => array('default' => ''), 'link_query' => array('default' => ''), 'link_target' => array('default' => ''));
     return $options;
 }
Exemplo n.º 13
0
 protected function defineOptions()
 {
     $options = parent::defineOptions();
     $options['date_format'] = array('default' => 'small');
     $options['custom_date_format'] = array('default' => '');
     $options['timezone'] = array('default' => '');
     return $options;
 }
Exemplo n.º 14
0
 protected function defineOptions()
 {
     $options = parent::defineOptions();
     // Override the alter text option to always alter the text.
     $options['alter']['contains']['alter_text'] = array('default' => TRUE, 'bool' => TRUE);
     $options['hide_alter_empty'] = array('default' => FALSE, 'bool' => TRUE);
     return $options;
 }
Exemplo n.º 15
0
 /**
  * {@inheritdoc}
  */
 protected function defineOptions()
 {
     $options = parent::defineOptions();
     $options['view'] = ['default' => ''];
     $options['display'] = ['default' => 'default'];
     $options['arguments'] = ['default' => ''];
     return $options;
 }
Exemplo n.º 16
0
 /**
  * {@inheritdoc}
  */
 protected function defineOptions()
 {
     $options = parent::defineOptions();
     $options['action_title'] = array('default' => 'With selection', 'translatable' => TRUE);
     $options['include_exclude'] = array('default' => 'exclude');
     $options['selected_actions'] = array('default' => array());
     return $options;
 }
Exemplo n.º 17
0
 /**
  * {@inheritdoc}
  */
 protected function defineOptions()
 {
     $options = parent::defineOptions();
     $options['action_title'] = array('default' => $this->t('With selection'));
     $options['include_exclude'] = array('default' => 'exclude');
     $options['selected_actions'] = array('default' => array());
     return $options;
 }
Exemplo n.º 18
0
 /**
  * {@inheritdoc}
  */
 protected function defineOptions()
 {
     $options = parent::defineOptions();
     $options['type'] = array('default' => 'yes-no');
     $options['type_custom_true'] = array('default' => '');
     $options['type_custom_false'] = array('default' => '');
     $options['not'] = array('default' => FALSE);
     return $options;
 }
Exemplo n.º 19
0
 protected function defineOptions()
 {
     $options = parent::defineOptions();
     $options['type'] = array('default' => 'yes-no');
     $options['type_custom_true'] = array('default' => '', 'translatable' => TRUE);
     $options['type_custom_false'] = array('default' => '', 'translatable' => TRUE);
     $options['not'] = array('default' => FALSE, 'bool' => TRUE);
     return $options;
 }
Exemplo n.º 20
0
 /**
  * Overrides \Drupal\views\Plugin\views\field\FieldPluginBase::defineOptions().
  */
 protected function defineOptions()
 {
     $options = parent::defineOptions();
     $options['label'] = array('default' => $this->definition['title'], 'translatable' => TRUE);
     $options['gcal'] = array('default' => '');
     $options['class'] = array('default' => 'fc-event-default fc-event-gcal');
     $options['timezone'] = array('default' => date_default_timezone_get());
     return $options;
 }
Exemplo n.º 21
0
  /**
   * {@inheritdoc}
   */
  protected function defineOptions() {
    $options = parent::defineOptions();

    // Set the default relationship handler. The first instance of the
    // FlagViewsRelationship should always have the id "flag_relationship", so
    // we set that as the default.
    $options['relationship'] = array('default' => 'flag_relationship');

    return $options;
  }
Exemplo n.º 22
0
 /**
  * {@inheritdoc}
  */
 protected function defineOptions()
 {
     $options = parent::defineOptions();
     $options['set_precision'] = array('default' => FALSE);
     $options['precision'] = array('default' => 0);
     $options['decimal'] = array('default' => '.');
     $options['separator'] = array('default' => ',');
     $options['format_plural'] = array('default' => FALSE);
     $options['format_plural_string'] = array('default' => '1' . LOCALE_PLURAL_DELIMITER . '@count');
     $options['prefix'] = array('default' => '');
     $options['suffix'] = array('default' => '');
     return $options;
 }
Exemplo n.º 23
0
 /**
  * {@inheritdoc}
  */
 protected function defineOptions()
 {
     $options = parent::defineOptions();
     $options['set_precision'] = array('default' => FALSE);
     $options['precision'] = array('default' => 0);
     $options['decimal'] = array('default' => '.');
     $options['separator'] = array('default' => ',');
     $options['format_plural'] = array('default' => FALSE);
     $options['format_plural_singular'] = array('default' => '1');
     $options['format_plural_plural'] = array('default' => '@count');
     $options['prefix'] = array('default' => '');
     $options['suffix'] = array('default' => '');
     return $options;
 }
Exemplo n.º 24
0
 /**
  * {@inheritdoc}
  */
 protected function defineOptions()
 {
     $options = parent::defineOptions();
     $options['link_to_file'] = array('default' => FALSE);
     return $options;
 }
Exemplo n.º 25
0
 /**
  * {@inheritdoc}
  */
 protected function defineOptions()
 {
     $options = parent::defineOptions();
     $options['text'] = array('default' => '');
     return $options;
 }
Exemplo n.º 26
0
 protected function defineOptions()
 {
     $options = parent::defineOptions();
     $options['text'] = array('default' => '', 'translatable' => TRUE);
     return $options;
 }
Exemplo n.º 27
0
 /**
  * {@inheritdoc}
  */
 protected function defineOptions()
 {
     $options = parent::defineOptions();
     $options['extension_detect_tar'] = array('default' => FALSE, 'bool' => TRUE);
     return $options;
 }
Exemplo n.º 28
0
 /**
  * {@inheritdoc}
  */
 protected function defineOptions()
 {
     $options = parent::defineOptions();
     $options['link_to_user'] = array('default' => TRUE);
     return $options;
 }
Exemplo n.º 29
0
 /**
  * Define the available options
  * @return array
  */
 protected function defineOptions()
 {
     $options = parent::defineOptions();
     return $options;
 }
Exemplo n.º 30
0
 /**
  * {@inheritdoc}
  */
 protected function defineOptions()
 {
     $options = parent::defineOptions();
     $options['native_language'] = array('default' => FALSE);
     return $options;
 }