Commit 67be0958 authored by Devin Zuczek's avatar Devin Zuczek
Browse files

Issue #3294807: Add helptext for quiz grade range feedback

parent f8534d1c
Loading
Loading
Loading
Loading
+8 −2
Original line number Diff line number Diff line
@@ -14,7 +14,7 @@ field_name: quiz_feedback_range
entity_type: paragraph
bundle: quiz_result_feedback
label: 'Grade range'
description: ''
description: 'Show this result for scored Quiz in this range (0-100).'
required: true
translatable: false
default_value: {  }
@@ -22,10 +22,16 @@ default_value_callback: ''
settings:
  min: 0
  max: 100
  from:
  field:
    prefix: ''
    suffix: ''
  from:
    prefix: ''
    suffix: '%'
  to:
    prefix: ''
    suffix: '%'
  combined:
    prefix: ''
    suffix: ''
field_type: range_integer
+13 −0
Original line number Diff line number Diff line
@@ -26,3 +26,16 @@ function quiz_update_9001() {
  \Drupal::entityDefinitionUpdateManager()
    ->installFieldStorageDefinition('uid', 'quiz_question', 'quiz', $field_storage_definition);
}

/**
 * Update configs from disk.
 */
function quiz_update_9002() {
  $name = 'field.field.paragraph.quiz_result_feedback.quiz_feedback_range';

  $source = new \Drupal\Core\Config\FileStorage(__DIR__ . '/config/install');
  /** @var \Drupal\Core\Config\StorageInterface $active_storage */
  $active_storage = \Drupal::service('config.storage');
  $active_storage->write($name, $source->read($name));

}