function FilterFormat::isFallbackFormat
Same name in other branches
- 9 core/modules/filter/src/Entity/FilterFormat.php \Drupal\filter\Entity\FilterFormat::isFallbackFormat()
- 8.9.x core/modules/filter/src/Entity/FilterFormat.php \Drupal\filter\Entity\FilterFormat::isFallbackFormat()
- 10 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 262
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;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.