revert 8cad3c2d3d
revert Merge pull request 'feat(widgets): add phase 4 validation and accessibility' (#6) from worktree/widgets-phase-4 into main Reviewed-on: #6
This commit is contained in:
@@ -34,9 +34,8 @@ final class WidgetDefinition {
|
||||
$this->description = trim((string) ($definition['description'] ?? ''));
|
||||
$this->group = (string) ($definition['group'] ?? 'general');
|
||||
$this->renderer = (string) ($definition['renderer'] ?? $slug);
|
||||
$size = (string) ($definition['size'] ?? 'any');
|
||||
$this->size = in_array($size, ['any', 'wide', 'sidebar'], true)
|
||||
? $size
|
||||
$this->size = in_array(($definition['size'] ?? 'any'), ['any', 'wide', 'sidebar'], true)
|
||||
? (string) $definition['size']
|
||||
: 'any';
|
||||
$this->fields = array_values((array) ($definition['fields'] ?? []));
|
||||
$this->common = array_merge(
|
||||
|
||||
Reference in New Issue
Block a user