You are here

function _bootstrap_iconize_button in Express 8

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.

See also

\Drupal\bootstrap\Utility\Element::setIcon()

File

themes/contrib/bootstrap/deprecated.php, line 448
This contains deprecated functions that will be removed in a future release.

Code

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