function protected static function ProcessManager::findButton
8.x-3.x ProcessManager.php | protected static &ProcessManager::findButton(Element $element) |
Traverses an element to find the closest button.
Parameters
\Drupal\bootstrap\Utility\Element $element: The element to iterate over.
Return value
\Drupal\bootstrap\Utility\Element|false The first button element or FALSE if no button could be found.
Deprecated
Will be removed in a future release. Use \Drupal\bootstrap\Utility\Element::findButton() directly.
Class
- ProcessManager
- Manages discovery and instantiation of Bootstrap form process callbacks.
Namespace
Drupal\bootstrap\PluginSource src/Plugin/ProcessManager.php (line 202)
protected static function &findButton(Element $element) {
Bootstrap::deprecated();
return $element->findButton();
}