public function FilterFormatFormBase::exists in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/filter/src/FilterFormatFormBase.php \Drupal\filter\FilterFormatFormBase::exists()
Determines if the format already exists.
Parameters
string $format_id: The format ID
Return value
bool TRUE if the format exists, FALSE otherwise.
File
- core/
modules/ filter/ src/ FilterFormatFormBase.php, line 196 - Contains \Drupal\filter\FilterFormatFormBase.
Class
- FilterFormatFormBase
- Provides a base form for a filter format.
Namespace
Drupal\filterCode
public function exists($format_id) {
return (bool) $this->queryFactory
->get('filter_format')
->condition('format', $format_id)
->execute();
}