FilterFormat::isFallbackFormat

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;
}
doc_Drupal
2016-10-29 09:14:32
Comments
Leave a Comment

Please login to continue.