public function OpignoModule::updateResultsOptions in Opigno module 8
Same name and namespace in other branches
- 3.x src/Entity/OpignoModule.php \Drupal\opigno_module\Entity\OpignoModule::updateResultsOptions()
Update feedback results options.
File
- src/
Entity/ OpignoModule.php, line 347
Class
- OpignoModule
- Defines the Module entity.
Namespace
Drupal\opigno_module\EntityCode
public function updateResultsOptions(FormStateInterface $form_state) {
/* @var $connection \Drupal\Core\Database\Connection */
$connection = \Drupal::service('database');
// Remove existing options.
$connection
->delete('opigno_module_result_options')
->condition('module_id', $this
->id())
->condition('module_vid', $this
->getRevisionId())
->execute();
// Insert options.
$this
->insertResultsOptions($form_state);
}