public function FilterFormat::isFallbackFormat in Drupal 10
Same name and namespace in other branches
- 8 core/modules/filter/src/Entity/FilterFormat.php \Drupal\filter\Entity\FilterFormat::isFallbackFormat()
- 9 core/modules/filter/src/Entity/FilterFormat.php \Drupal\filter\Entity\FilterFormat::isFallbackFormat()
Returns if this format is the fallback format.
The fallback format can never be disabled. It must always be available.
Return value
bool TRUE if this format is the fallback format, FALSE otherwise.
Overrides FilterFormatInterface::isFallbackFormat
2 calls to FilterFormat::isFallbackFormat()
- FilterFormat::disable in core/
modules/ filter/ src/ Entity/ FilterFormat.php - Disables the configuration entity.
- FilterFormat::getPermissionName in core/
modules/ filter/ src/ Entity/ FilterFormat.php - Returns the machine-readable permission name for the text format.
File
- core/
modules/ filter/ src/ Entity/ FilterFormat.php, line 247
Class
- FilterFormat
- Represents a text format.
Namespace
Drupal\filter\EntityCode
public function isFallbackFormat() {
$fallback_format = \Drupal::config('filter.settings')
->get('fallback_format');
return $this
->id() == $fallback_format;
}