Skip to content
Snippets Groups Projects

Issue #2707689: NodeForm::actions() checks for delete access on new entities

2 files
+ 52
2
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -186,7 +186,7 @@ public function form(array $form, FormStateInterface $form_state) {
'#description' => $this->t('Select the region where this block should be displayed.'),
'#default_value' => $region,
'#required' => TRUE,
'#options' => system_region_list($theme, REGIONS_VISIBLE),
'#options' => system_region_list($form_state->getValue('theme', $theme), REGIONS_VISIBLE),
'#prefix' => '<div id="edit-block-region-wrapper">',
'#suffix' => '</div>',
];
@@ -198,7 +198,6 @@ public function form(array $form, FormStateInterface $form_state) {
* Handles switching the available regions based on the selected theme.
*/
public function themeSwitch($form, FormStateInterface $form_state) {
$form['region']['#options'] = system_region_list($form_state->getValue('theme'), REGIONS_VISIBLE);
return $form['region'];
}
Loading