I want to display CMS block names (for example, footer links, promotional banners, etc.) and display modes (for example, products only, static block only, static block and products) in the admin form dropdown.
In Magento 1, I have displayed it using the following code:
Display mode:
'values'=>Mage::getModel('catalog/category_attribute_source_mode')->getAllOptions() display mode
CMS block
'values' => Mage::getModel('catalog/category_attribute_source_page')->getAllOptions()
What is the equivalent code for the above in Magento 2 for getting the CMS block name and display modes in the admin form dropdown?