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