code: public function getAllTables()
  	{
  		$arrTables = $this->Database->listTables();
  		$arrViews = Contao\System::getContainer()->get('database_connection')->getSchemaManager()->listViews();
  
  		if (!empty($arrViews))
  		{
  			$arrTables = array_merge($arrTables, array_keys($arrViews));
  			natsort($arrTables);
  		}
  
  		return array_values($arrTables);
  	}
docs: Get all tables and return them as array
  
  @return array