9 use Magento\CheckoutAgreements\Model\ResourceModel\Agreement\CollectionFactory as AgreementCollectionFactory;
61 $agreementCollection = $this->agreementCollectionFactory->create();
62 $agreementCollection->addStoreFilter($this->storeManager->getStore()->getId());
63 $agreementCollection->addFieldToFilter(
'is_active', 1);
65 $agreementIds = $agreementCollection->getAllIds();
$agreementCollectionFactory
__construct(AgreementCollectionFactory $agreementCollectionFactory, \Magento\Store\Model\StoreManagerInterface $storeManager, \Magento\Framework\App\Config\ScopeConfigInterface $scopeConfig)
getRequiredAgreementIds()