13 class Form extends \Magento\Backend\Block\Widget\Form\Generic
30 \
Magento\Framework\Data\FormFactory $formFactory,
43 public function initForm()
46 $form = $this->_formFactory->create();
48 $fieldset = $form->addFieldset(
'cache_enable', [
'legend' =>
__(
'Cache Control')]);
54 'name' =>
'all_cache',
55 'label' =>
'<strong>' .
__(
'All Cache') .
'</strong>',
58 '' =>
__(
'No change'),
59 'refresh' =>
__(
'Refresh'),
60 'disable' =>
__(
'Disable'),
61 'enable' =>
__(
'Enable'),
66 foreach ($this->cacheTypeList->getTypeLabels() as
$type =>
$label) {
71 'name' =>
'enable[' .
$type .
']',
74 'checked' => (
int)$this->_cacheState->isEnabled(
$type)