You are here

public function OpignoModule::getResultsOptions in Opigno module 8

Same name and namespace in other branches
  1. 3.x src/Entity/OpignoModule.php \Drupal\opigno_module\Entity\OpignoModule::getResultsOptions()

Get feedback results options.

File

src/Entity/OpignoModule.php, line 296

Class

OpignoModule
Defines the Module entity.

Namespace

Drupal\opigno_module\Entity

Code

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;
}