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.
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
.