public 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
File
- core/modules/filter/src/Entity/FilterFormat.php, line 239
Class
- FilterFormat
- Represents a text format.
Namespace
Drupal\filter\Entity
Code
public function isFallbackFormat() { $fallback_format = \Drupal::config('filter.settings')->get('fallback_format'); return $this->id() == $fallback_format; }
Please login to continue.