Elementor\Scheme_Color_Picker::_get_system_schemes_to_print PHP Méthode

_get_system_schemes_to_print() protected méthode

    protected function _get_system_schemes_to_print()
    {
        $schemes = $this->get_system_schemes();
        $items_to_print = [self::COLOR_1, self::COLOR_5, self::COLOR_2, self::COLOR_3, self::COLOR_6, self::COLOR_4];
        $items_to_print = array_flip($items_to_print);
        foreach ($schemes as $scheme_key => $scheme) {
            $schemes[$scheme_key]['items'] = array_replace($items_to_print, array_intersect_key($scheme['items'], $items_to_print));
        }
        return $schemes;
    }