function _bootstrap_colorize_button

8 deprecated.php _bootstrap_colorize_button(array &$element)
7 common.inc _bootstrap_colorize_button(&$element)

Adds a specific Bootstrap class to color a button based on its text value.

  // Before.
  _bootstrap_colorize_button($element);

  // After.
  use Drupal\bootstrap\Utility\Element;
  Element::create($element)->colorize();

Parameters

array $element: The form element, passed by reference.

Deprecated

Will be removed in a future release.

Source ./deprecated.php (line 158)

function _bootstrap_colorize_button(array &$element) {
  Bootstrap::deprecated();
  Element::create($element)->colorize();
}