/**
  * {@inheritdoc}
  */
 public function buildConfigurationForm(array $form, FormStateInterface $form_state)
 {
     $form['show_id'] = array('#type' => 'checkbox', '#title' => $this->t('Show image ID'), '#default_value' => $this->configuration['show_id']);
     $form['compare_alt_field'] = array('#type' => 'checkbox', '#title' => $this->t('Compare <em>Alt</em> field'), '#default_value' => $this->configuration['compare_alt_field'], '#description' => $this->t('This is only used if the "Enable <em>Alt</em> field" is checked in the instance settings.'));
     $form['compare_title_field'] = array('#type' => 'checkbox', '#title' => $this->t('Compare <em>Title</em> field'), '#default_value' => $this->configuration['compare_title_field'], '#description' => $this->t('This is only used if the "Enable <em>Title</em> field" is checked in the instance settings.'));
     $form['property_separator'] = array('#type' => 'select', '#title' => $this->t('Property separator'), '#default_value' => $this->configuration['property_separator'], '#description' => $this->t('Provides the ability to show properties inline or across multiple lines.'), '#options' => array(', ' => $this->t('Comma (,)'), '; ' => $this->t('Semicolon (;)'), ' ' => $this->t('Space'), 'nl' => $this->t('New line')));
     return parent::buildConfigurationForm($form, $form_state);
 }
Esempio n. 2
0
 /**
  * {@inheritdoc}
  */
 public function buildConfigurationForm(array $form, FormStateInterface $form_state)
 {
     $form['compare_format'] = array('#type' => 'checkbox', '#title' => $this->t('Compare format'), '#default_value' => $this->configuration['compare_format'], '#description' => $this->t('This is only used if the "Text processing" instance settings are set to <em>Filtered text (user selects text format)</em>.'));
     return parent::buildConfigurationForm($form, $form_state);
 }
 /**
  * {@inheritdoc}
  */
 public function buildConfigurationForm(array $form, FormStateInterface $form_state)
 {
     $form['show_name'] = array('#type' => 'checkbox', '#title' => $this->t('Show term name'), '#default_value' => $this->configuration['show_name']);
     $form['show_id'] = array('#type' => 'checkbox', '#title' => $this->t('Show term ID'), '#default_value' => $this->configuration['show_id']);
     return parent::buildConfigurationForm($form, $form_state);
 }
Esempio n. 4
0
 /**
  * {@inheritdoc}
  */
 public function buildConfigurationForm(array $form, FormStateInterface $form_state)
 {
     $form['compare'] = array('#type' => 'radios', '#title' => $this->t('Comparison method'), '#options' => array('label' => $this->t('Label'), 'key' => $this->t('Key'), 'both' => $this->t('Label (key)')), '#default_value' => $this->configuration['compare']);
     return parent::buildConfigurationForm($form, $form_state);
 }
Esempio n. 5
0
 /**
  * {@inheritdoc}
  */
 public function buildConfigurationForm(array $form, FormStateInterface $form_state)
 {
     $form['compare_title'] = array('#type' => 'checkbox', '#title' => $this->t('Compare link title'), '#default_value' => $this->configuration['compare_title']);
     $form['compare_uri'] = array('#type' => 'checkbox', '#title' => $this->t('Compare URI'), '#default_value' => $this->configuration['compare_uri']);
     return parent::buildConfigurationForm($form, $form_state);
 }
 /**
  * {@inheritdoc}
  */
 public function buildConfigurationForm(array $form, FormStateInterface $form_state)
 {
     $form['compare_key'] = array('#type' => 'checkbox', '#title' => $this->t('Compare comment status key'), '#default_value' => $this->configuration['compare_key']);
     $form['compare_string'] = array('#type' => 'checkbox', '#title' => $this->t('Compare comment status string'), '#default_value' => $this->configuration['compare_string']);
     return parent::buildConfigurationForm($form, $form_state);
 }
 /**
  * {@inheritdoc}
  */
 public function buildConfigurationForm(array $form, FormStateInterface $form_state)
 {
     $form['compare_entity_reference'] = array('#type' => 'select', '#title' => $this->t('Compare'), '#options' => array(COMPARE_ENTITY_REFERENCE_ID => t('ID'), COMPARE_ENTITY_REFERENCE_LABEL => t('Label')), '#default_value' => $this->configuration['compare_entity_reference']);
     return parent::buildConfigurationForm($form, $form_state);
 }