magento / community-features

Magento Features Development is an Initiative to Allows Community Memebers Join to Development of Magento Features
46 stars 18 forks source link

Config Source: CMS Blocks #59

Closed thomas-kl1 closed 6 years ago

thomas-kl1 commented 6 years ago

As a copy of \Magento\Cms\Model\Config\Source\Page a config source for cms blocks could be useful for internal and third parts usages.

Implementation: https://github.com/magento/magento2/pull/16021

It moves the toOptionIdArray method of collection to the cms abstract collection. It adds a new class \Magento\Cms\Model\Config\Source\Block which implement \Magento\Framework\Option\ArrayInterface (must be replaced by \Magento\Framework\Data\OptionSourceInterface).

Come with its new unit test \Magento\Cms\Test\Unit\Model\Config\Source\BlockTest.

thomas-kl1 commented 6 years ago

See https://github.com/magento/magento2/pull/16021