public function OpignoModule::getResultsOptions in Opigno module 3.x
Same name and namespace in other branches
- 8 src/Entity/OpignoModule.php \Drupal\opigno_module\Entity\OpignoModule::getResultsOptions()
Get feedback results options.
File
- src/
Entity/ OpignoModule.php, line 301
Class
- OpignoModule
- Defines the Module entity.
Namespace
Drupal\opigno_module\EntityCode
public function getResultsOptions() {
/* @var $connection \Drupal\Core\Database\Connection */
$connection = \Drupal::service('database');
$select_query = $connection
->select('opigno_module_result_options', 'omro')
->fields('omro')
->condition('module_id', $this
->id())
->condition('module_vid', $this
->getRevisionId());
$options = $select_query
->execute()
->fetchAll();
return $options;
}