Skip to content
Snippets Groups Projects
Commit dfc16f5e authored by Florent Torregrosa's avatar Florent Torregrosa
Browse files

Issue #3457507 by Grimreaper: Fix core 10.3 deprecations + use PHP attribute for plugin annotation

parent f7a9864b
No related branches found
No related tags found
1 merge request!18Issue #3457507 by Grimreaper: Fix core 10.3 deprecations + use PHP attribute for plugin annotation
Pipeline #209420 passed
......@@ -6,7 +6,8 @@ namespace Drupal\ui_skins\Element;
use Drupal\Component\Utility\NestedArray;
use Drupal\Core\Form\FormStateInterface;
use Drupal\Core\Render\Element\FormElement;
use Drupal\Core\Render\Attribute\FormElement;
use Drupal\Core\Render\Element\FormElementBase;
/**
* Provides a color form element with alpha channel support.
......@@ -20,10 +21,9 @@ use Drupal\Core\Render\Element\FormElement;
* ];
*
* @endcode
*
* @FormElement("ui_skins_alpha_color")
*/
class AlphaColor extends FormElement {
#[FormElement('ui_skins_alpha_color')]
class AlphaColor extends FormElementBase {
/**
* Length when encoding a color channel value in hexadecimal.
......
name: 'UI Skins'
type: module
description: 'Allow handle some theme settings like CSS variables.'
core_version_requirement: ^10 || ^11
core_version_requirement: ^10.3 || ^11
package: 'User interface'
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment