public function BUEditorToolbarWrapper::hasAnyOf in BUEditor 8
Same name and namespace in other branches
- 8.2 src/BUEditorToolbarWrapper.php \Drupal\bueditor\BUEditorToolbarWrapper::hasAnyOf()
Checks if any of the given items exists.
File
- src/
BUEditorToolbarWrapper.php, line 60
Class
- BUEditorToolbarWrapper
- Defines a class that manages BUEditor toolbar data.
Namespace
Drupal\bueditorCode
public function hasAnyOf(array $ids) {
foreach ($ids as $id) {
if (isset($this->assocToolbar[$id])) {
return TRUE;
}
}
return FALSE;
}