function _bootstrap_iconize_button
8.x-3.x deprecated.php | _bootstrap_iconize_button(array &$element) |
7.x-3.x common.inc | _bootstrap_iconize_button(array &$element) |
Adds an icon to button element based on its text value.
// Before.
_bootstrap_iconize_button($element);
// After.
use Drupal\bootstrap\Utility\Element;
Element::create($element)->setIcon();
Parameters
array $element: The form element, passed by reference.
Deprecated
Will be removed in a future release.
Source ./deprecated.php (line 504)
function _bootstrap_iconize_button(array &$element) {
Bootstrap::deprecated();
Element::create($element)->setIcon();
}