You are here

function _bootstrap_is_button in Express 8

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.

See also

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

File

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

Code

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