public SwitchShortcutSet::exists($id)
Determines if a shortcut set exists already.
Parameters
string $id: The set ID to check.
Return value
bool TRUE if the shortcut set exists, FALSE otherwise.
File
- core/modules/shortcut/src/Form/SwitchShortcutSet.php, line 148
Class
- SwitchShortcutSet
- Builds the shortcut set switch form.
Namespace
Drupal\shortcut\Form
Code
1 2 3 4 5 | public function exists( $id ) { return (bool) $this ->shortcutSetStorage->getQuery() ->condition( 'id' , $id ) ->execute(); } |
Please login to continue.