public function RRSSBSettingsForm::exists in Ridiculously Responsive Social Sharing Buttons 8.2
Helper function to check whether an Example configuration entity exists.
File
- src/
Form/ RRSSBSettingsForm.php, line 243
Class
- RRSSBSettingsForm
- RRSSB settings form.
Namespace
Drupal\rrssb\FormCode
public function exists($id) {
$entity = $this->entityTypeManager
->getStorage('rrssb_button_set')
->getQuery()
->condition('id', $id)
->execute();
return (bool) $entity;
}