public function normalizeWidgetConfig($widget): void
    {
        // to avoid normalizing a widget multiple times unnecessarily :
        if (isset($widget->isNormalized)) {
            return;
        }

        foreach ($this->normalizers as $normalizer) {
            $normalizer->normalize($widget);
        }

        $widget->isNormalized = true;
    }
public function normalizeWidgetConfig($widget): void
    {
        // to avoid normalizing a widget multiple times unnecessarily :
        if (isset($widget->isNormalized)) {
            return;
        }

        foreach ($this->normalizers as $normalizer) {
            $normalizer->normalize($widget);
        }

        $widget->isNormalized = true;
    }
public function normalizeWidgetConfig ( $ widget ) : void { // to avoid normalizing a widget multiple times unnecessarily : if ( isset ( $ widget -> isNormalized ) ) { return ; } foreach ( $ this -> normalizers as $ normalizer ) { $ normalizer -> normalize ( $ widget ) ; } $ widget -> isNormalized = true ; }
Figures out and sets the widget configs according to conventions.

@param object $widget
Figures out and sets the widget configs according to conventions .