diff --git a/core/modules/filter/src/Element/ProcessedText.php b/core/modules/filter/src/Element/ProcessedText.php index 9f8b8ce..e0045d1 100644 --- a/core/modules/filter/src/Element/ProcessedText.php +++ b/core/modules/filter/src/Element/ProcessedText.php @@ -82,7 +82,7 @@ public static function preRenderText($element) { $format = FilterFormat::load($format_id); // If the requested text format doesn't exist or it's disabled, the text // cannot be filtered. - if (!$format || !$format->get('status')) { + if (!$format || !$format->status()) { $message = !$format ? 'Missing text format: %format.' : 'Disabled text format: %format.'; static::logger('filter')->alert($message, array('%format' => $format_id)); $element['#markup'] = ''; diff --git a/core/modules/filter/src/Entity/FilterFormat.php b/core/modules/filter/src/Entity/FilterFormat.php index cf61f7f..1c325da 100644 --- a/core/modules/filter/src/Entity/FilterFormat.php +++ b/core/modules/filter/src/Entity/FilterFormat.php @@ -150,6 +150,13 @@ public function filters($instance_id = NULL) { /** * {@inheritdoc} */ + public function status() { + return parent::status() || $this->isFallbackFormat(); + } + + /** + * {@inheritdoc} + */ public function getPluginCollections() { return array('filters' => $this->filters()); }