code: protected function getConfigs()
      {
          if (!count($this->configs)) {
              // Init the config from database.
              $statement = $this->connection->query('SELECT * FROM tl_metamodel_searchable_pages');
  
              $this->configs = $statement->fetchAll(\PDO::FETCH_ASSOC);
          }
  
          return $this->configs;
      }
docs: Get all configs.
  
  @return array
  
  @throws \Doctrine\DBAL\DBALException When a database error occur.