data['sections'] ?? null) ? $this->data['sections'] : []; $sectionErrors = SectionEditor::sectionErrorsFromForm($exception->errors(), $state); if ($sectionErrors === []) { return; } SectionEditor::notifyErrors($sectionErrors, $state); foreach (SectionEditor::mapErrors($sectionErrors, $state) as $key => $messages) { if (str_ends_with($key, '.slots')) { foreach ((array) $messages as $message) { $exception->validator->errors()->add($key, $message); } } } } }