code: private function getFilterSettings(ModelInterface $model)
      {
          $filters = $this->connection
              ->createQueryBuilder()
              ->select('id', 'name')
              ->from('tl_metamodel_filter')
              ->where('pid=:id')
              ->setParameter('id', $model->getProperty('pid'))
              ->execute()
              ->fetchAll(\PDO::FETCH_ASSOC);
  
          $result = [];
          foreach ($filters as $filter) {
              $result[$filter['id']] = $filter['name'];
          }
  
          return $result;
      }
docs: Retrieve the model filters for the MCW.
  
  @param ModelInterface $model The model containing the currently edited render setting.
  
  @return array