Skip to content
Snippets Groups Projects
Commit a50a5202 authored by Thomas Secher's avatar Thomas Secher
Browse files

Issue #3360654 fix default text format

parent a33ebeda
Branches 1.x
1 merge request!2Issue #3360654 fix default text format
......@@ -218,7 +218,7 @@ class FormHelperFieldGroup extends FieldGroupFormatterBase {
* The default text format id.
*/
public static function getDefaultFormatText(): string {
if (is_null(static::$defaultTextFormat)) {
if (!isset(static::$defaultTextFormat)) {
static::$defaultTextFormat = '';
if ($formats = \Drupal::entityTypeManager()->getStorage('filter_format')) {
static::$defaultTextFormat = array_keys($formats->loadMultiple())[0];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment