code: private function fetchConditions($inputScreenId): array
      {
          $builder = $this->connection->createQueryBuilder();
  
          return $builder
              ->select('cond.*', 'setting.attr_id AS setting_attr_id')
              ->from('tl_metamodel_dcasetting_condition', 'cond')
              ->leftJoin('cond', 'tl_metamodel_dcasetting', 'setting', 'cond.settingId=setting.id')
              ->leftJoin('setting', 'tl_metamodel_dca', 'dca', 'setting.pid=dca.id')
              ->where('cond.enabled=1')
              ->andWhere('setting.published=1')
              ->andWhere('dca.id=:screenId')
              ->setParameter('screenId', $inputScreenId)
              ->orderBy('pid')
              ->addOrderBy('sorting')
              ->execute()
              ->fetchAll(\PDO::FETCH_ASSOC);
      }
docs: Fetch conditions for an input screen.
  
  @param string $inputScreenId The input screen to obtain conditions for.
  
  @return array