core-bundle/src/Resources/contao/dca/tl_form.php
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);
	}
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);
	}
Get all tables and return them as array

@return array