function _bootstrap_is_button
8.x-3.x deprecated.php | _bootstrap_is_button(array $element) |
7.x-3.x common.inc | _bootstrap_is_button(array $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 561)
function _bootstrap_is_button(array $element) {
Bootstrap::deprecated();
return Element::create($element)->isButton();
}