function _bootstrap_is_button

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

Determines if an element is a button.

  // Before.
  $button = _bootstrap_is_button($element);

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

Parameters

array $element: A render array element.

Return value

bool TRUE or FALSE.

Deprecated

Will be removed in a future release.

Source ./deprecated.php (line 505)

function _bootstrap_is_button(array $element) {
  Bootstrap::deprecated();
  return Element::create($element)->isButton();
}