color-scheme-form.html.twig

Default theme implementation for a theme's color form. Available variables: form: Form elements for the color scheme form, including: scheme: A color scheme form element. For example: a select element with color theme presets, or a color picker widget. palette: Color fields that can be changed by entering in a new hex value. html_preview: A HTML preview of the theme's current color scheme. See also template_preprocess_color_scheme_form() File core/modules/color/templates/color-scheme-f

Color

Performs color conversions. Hierarchy class \Drupal\Component\Utility\Color File core/lib/Drupal/Component/Utility/Color.php, line 8 Namespace Drupal\Component\Utility Members Name Modifiers Type Description Color::hexToRgb public static function Parses a hexadecimal color string like '#abc' or '#aabbcc'. Color::rgbToHex public static function Converts RGB color arrays and RGB strings in CSS notation to lowercase simple colors like '#aabbcc'. Color::validateHex

Color

Provides a form element for choosing a color. Properties: #default_value: Default value, in a format like #ffffff. Example usage: $form['color'] = array( '#type' => 'color', '#title' => $this->t('Color'), '#default_value' => '#ffffff', ); Plugin annotation @FormElement("color") Hierarchy class \Drupal\Component\Plugin\PluginBase implements DerivativeInspectionInterface, PluginInspectionInterfaceclass \Drupal\Core\Plugin\PluginBase uses DependencySerializationTrait, String

CloseModalDialogCommand::__construct

public CloseModalDialogCommand::__construct($persist = FALSE) Constructs a CloseModalDialogCommand object. Parameters bool $persist: (optional) Whether to persist the dialog in the DOM or not. Overrides CloseDialogCommand::__construct File core/lib/Drupal/Core/Ajax/CloseModalDialogCommand.php, line 18 Class CloseModalDialogCommand Defines an AJAX command that closes the currently visible modal dialog. Namespace Drupal\Core\Ajax Code public function __construct($persist = FALSE) { $t

CloseModalDialogCommand

Defines an AJAX command that closes the currently visible modal dialog. Hierarchy class \Drupal\Core\Ajax\CloseDialogCommand implements CommandInterfaceclass \Drupal\Core\Ajax\CloseModalDialogCommand Related topics Ajax API Overview for Drupal's Ajax API. File core/lib/Drupal/Core/Ajax/CloseModalDialogCommand.php, line 10 Namespace Drupal\Core\Ajax Members Name Modifiers Type Description CloseDialogCommand::$persist protected property Whether to persist the dialog in

CloseDialogCommand::__construct

public CloseDialogCommand::__construct($selector = NULL, $persist = FALSE) Constructs a CloseDialogCommand object. Parameters string $selector: A CSS selector string of the dialog to close. bool $persist: (optional) Whether to persist the dialog in the DOM or not. File core/lib/Drupal/Core/Ajax/CloseDialogCommand.php, line 34 Class CloseDialogCommand Defines an AJAX command that closes the current active dialog. Namespace Drupal\Core\Ajax Code public function __construct($selector = N

CloseDialogCommand::render

public CloseDialogCommand::render() Return an array to be run through json_encode and sent to the client. Overrides CommandInterface::render File core/lib/Drupal/Core/Ajax/CloseDialogCommand.php, line 42 Class CloseDialogCommand Defines an AJAX command that closes the current active dialog. Namespace Drupal\Core\Ajax Code public function render() { return array( 'command' => 'closeDialog', 'selector' => $this->selector, 'persist' => $this->persist, ); }

CloseDialogCommand::$selector

A CSS selector string of the dialog to close. Type: string File core/lib/Drupal/Core/Ajax/CloseDialogCommand.php, line 17 Class CloseDialogCommand Defines an AJAX command that closes the current active dialog. Namespace Drupal\Core\Ajax Code protected $selector;

CloseDialogCommand::$persist

Whether to persist the dialog in the DOM or not. Type: bool File core/lib/Drupal/Core/Ajax/CloseDialogCommand.php, line 24 Class CloseDialogCommand Defines an AJAX command that closes the current active dialog. Namespace Drupal\Core\Ajax Code protected $persist;

CloseDialogCommand

Defines an AJAX command that closes the current active dialog. Hierarchy class \Drupal\Core\Ajax\CloseDialogCommand implements CommandInterface Related topics Ajax API Overview for Drupal's Ajax API. File core/lib/Drupal/Core/Ajax/CloseDialogCommand.php, line 10 Namespace Drupal\Core\Ajax Members Name Modifiers Type Description CloseDialogCommand::$persist protected property Whether to persist the dialog in the DOM or not. CloseDialogCommand::$selector protected