vpietri/magento2-developer-quickdevbar

View on GitHub
Model/Config/Source/Area.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php
namespace ADM\QuickDevBar\Model\Config\Source;

class Area implements \Magento\Framework\Option\ArrayInterface
{
    /**
     * Options getter
     *
     * @return array
     */
    public function toOptionArray()
    {
        return [
            ['value' => \Magento\Framework\App\Area::AREA_GLOBAL, 'label' => __('All')],
            ['value' => \Magento\Framework\App\Area::AREA_FRONTEND, 'label' => __('Frontend only')],
            ['value' => \Magento\Framework\App\Area::AREA_ADMINHTML, 'label' => __('Adminhtml only')]
        ];
    }
}