コード例 #1
0
 protected function defineOptions()
 {
     $options = parent::defineOptions();
     $options['text'] = array('default' => '');
     $options['link_to_entity'] = array('default' => FALSE);
     return $options;
 }
コード例 #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;
  }
コード例 #3
0
ファイル: FullName.php プロジェクト: pedrocones/hydrotools
 /**
  * {@inheritdoc}
  */
 protected function defineOptions()
 {
     $options = parent::defineOptions();
     $options['link_to_user'] = array('default' => FALSE, 'bool' => TRUE);
     $options['format'] = array('default' => 'first_last');
     return $options;
 }
コード例 #4
0
ファイル: Links.php プロジェクト: ddrozdik/dmaps
 /**
  * {@inheritdoc}
  */
 public function defineOptions()
 {
     $options = parent::defineOptions();
     $options['fields'] = array('default' => array());
     $options['destination'] = array('default' => TRUE);
     return $options;
 }
コード例 #5
0
ファイル: UserData.php プロジェクト: eigentor/tommiblog
 /**
  * {@inheritdoc}
  */
 protected function defineOptions()
 {
     $options = parent::defineOptions();
     $options['data_module'] = array('default' => '');
     $options['data_name'] = array('default' => '');
     return $options;
 }
コード例 #6
0
ファイル: ContextualLinks.php プロジェクト: nstielau/drops-8
 /**
  * {@inheritdoc}
  */
 protected function defineOptions()
 {
     $options = parent::defineOptions();
     $options['fields'] = array('default' => array());
     $options['destination'] = array('default' => 1);
     return $options;
 }
コード例 #7
0
ファイル: Comment.php プロジェクト: alnutile/drunatra
 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;
 }
コード例 #8
0
 protected function defineOptions()
 {
     $options = parent::defineOptions();
     $options['format'] = array('default' => 'unserialized');
     $options['key'] = array('default' => '');
     return $options;
 }
コード例 #9
0
ファイル: Taxonomy.php プロジェクト: anatalsceo/en-classe
 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;
 }
コード例 #10
0
 /**
  * {@inheritdoc}
  */
 protected function defineOptions()
 {
     $options = parent::defineOptions();
     $options['type'] = array('default' => 'separator');
     $options['separator'] = array('default' => ', ');
     return $options;
 }
コード例 #11
0
ファイル: Link.php プロジェクト: alnutile/drunatra
 protected function defineOptions()
 {
     $options = parent::defineOptions();
     $options['text'] = array('default' => '', 'translatable' => TRUE);
     $options['link_to_entity'] = array('default' => FALSE, 'bool' => TRUE);
     return $options;
 }
コード例 #12
0
ファイル: BaseUrl.php プロジェクト: dev981/gaptest
 /**
  * {@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;
 }
コード例 #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;
 }
コード例 #14
0
ファイル: Custom.php プロジェクト: alnutile/drunatra
 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;
 }
コード例 #15
0
ファイル: View.php プロジェクト: darrylri/protovbmwmo
 /**
  * {@inheritdoc}
  */
 protected function defineOptions()
 {
     $options = parent::defineOptions();
     $options['view'] = ['default' => ''];
     $options['display'] = ['default' => 'default'];
     $options['arguments'] = ['default' => ''];
     return $options;
 }
コード例 #16
0
ファイル: BulkForm.php プロジェクト: anatalsceo/en-classe
 /**
  * {@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;
 }
コード例 #17
0
ファイル: BulkForm.php プロジェクト: Nikola-xiii/d8intranet
 /**
  * {@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;
 }
コード例 #18
0
ファイル: Boolean.php プロジェクト: aWEBoLabs/taxi
 /**
  * {@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;
 }
コード例 #19
0
ファイル: Boolean.php プロジェクト: alnutile/drunatra
 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;
 }
コード例 #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;
 }
コード例 #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;
  }
コード例 #22
0
ファイル: NumericField.php プロジェクト: brstde/gap1
 /**
  * {@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;
 }
コード例 #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;
 }
コード例 #24
0
ファイル: File.php プロジェクト: HakS/drupal8_training
 /**
  * {@inheritdoc}
  */
 protected function defineOptions()
 {
     $options = parent::defineOptions();
     $options['link_to_file'] = array('default' => FALSE);
     return $options;
 }
コード例 #25
0
ファイル: Link.php プロジェクト: dev981/gaptest
 /**
  * {@inheritdoc}
  */
 protected function defineOptions()
 {
     $options = parent::defineOptions();
     $options['text'] = array('default' => '');
     return $options;
 }
コード例 #26
0
ファイル: Link.php プロジェクト: alnutile/drunatra
 protected function defineOptions()
 {
     $options = parent::defineOptions();
     $options['text'] = array('default' => '', 'translatable' => TRUE);
     return $options;
 }
コード例 #27
0
ファイル: Extension.php プロジェクト: anatalsceo/en-classe
 /**
  * {@inheritdoc}
  */
 protected function defineOptions()
 {
     $options = parent::defineOptions();
     $options['extension_detect_tar'] = array('default' => FALSE, 'bool' => TRUE);
     return $options;
 }
コード例 #28
0
 /**
  * {@inheritdoc}
  */
 protected function defineOptions()
 {
     $options = parent::defineOptions();
     $options['link_to_user'] = array('default' => TRUE);
     return $options;
 }
コード例 #29
0
 /**
  * Define the available options
  * @return array
  */
 protected function defineOptions()
 {
     $options = parent::defineOptions();
     return $options;
 }
コード例 #30
0
ファイル: LanguageField.php プロジェクト: ddrozdik/dmaps
 /**
  * {@inheritdoc}
  */
 protected function defineOptions()
 {
     $options = parent::defineOptions();
     $options['native_language'] = array('default' => FALSE);
     return $options;
 }