The primary law of the EU consists mainly of the founding treaties, the "core" treaties being the Treaty on European Union (TEU) and the Treaty on the Functioning of the European Union (TFEU).
Which treaty provides that the European Union law be applied to metropolitan territories of member states?
Treaty on European Union (TEU)