title: How to get discount from Quote in Magento 2 Checkout
body: <p>I have this url who has many Quote methods from Magento 2. Note that Quote is a class who has a data from checkout page in magento 2.</p>
  
  <p>Url: <a href="https://www.magentoextensions.org/documentation/class_magento_1_1_quote_1_1_model_1_1_quote.html" rel="nofollow noreferrer">https://www.magentoextensions.org/documentation/class_magento_1_1_quote_1_1_model_1_1_quote.html</a></p>
  
  <p>But i dont see a method like CheckoutConfig in javascript who has base_discount_amount like image:</p>
  
  <p><a href="https://i.stack.imgur.com/Wts67.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Wts67.png" alt="enter image description here"></a></p>
  
  <p>How to get Base Discount Amount programatically in PHP backend from checkout page Magento 2?????</p>
  
  <p>I should not use javascript because it will be a security fail</p>