Add visual header and footer layout editors
This commit is contained in:
@@ -125,7 +125,11 @@ final class DesignLibrary
|
||||
}
|
||||
}
|
||||
$clean['components'] = array_values(array_unique($components));
|
||||
$clean['links'] = Buttons::validate($data['links'] ?? $clean['links'], 20);
|
||||
try {
|
||||
$clean['links'] = Buttons::validate($data['links'] ?? $clean['links'], 20);
|
||||
} catch (RuntimeException $error) {
|
||||
throw new DesignFieldError('links', $error->getMessage());
|
||||
}
|
||||
try {
|
||||
$clean['action'] = Buttons::validate($data['action'] ?? []);
|
||||
} catch (RuntimeException $error) {
|
||||
|
||||
Reference in New Issue
Block a user