public FilterFormatFormBase::exists($format_id)
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 191
Class
- FilterFormatFormBase
- Provides a base form for a filter format.
Namespace
Drupal\filter
Code
1 2 3 4 5 6 | public function exists( $format_id ) { return (bool) $this ->queryFactory ->get( 'filter_format' ) ->condition( 'format' , $format_id ) ->execute(); } |
Please login to continue.