$form['id'
] =
[ '#type' => 'machine_name',
'#default_value' =>
$responsive_image_style->
id(),
'#machine_name' =>
[ 'exists' => '\Drupal\responsive_image\Entity\ResponsiveImageStyle::load',
'source' =>
['label'
],
],
'#disabled' =>
(bool) $responsive_image_style->
id() &&
$this->operation != 'duplicate',
];
$image_styles =
image_style_options(TRUE
);
$image_styles[ResponsiveImageStyleInterface::ORIGINAL_IMAGE
] =
$this->
t('- None (original image) -'
);
$image_styles[ResponsiveImageStyleInterface::EMPTY_IMAGE
] =
$this->
t('- empty image -'
);
if ((bool) $responsive_image_style->
id() &&
$this->operation != 'duplicate'
) { $description =
$this->
t('Select a breakpoint group from the installed themes and modules. Below you can select which breakpoints to use from this group. You can also select which image style or styles to use for each breakpoint you use.'
) . ' ' .
$this->
t("Warning: if you change the breakpoint group you lose all your image style selections for each breakpoint."
);
} else { $description =
$this->
t('Select a breakpoint group from the installed themes and modules.'
);
} $form['breakpoint_group'
] =
[