diff --git a/core/modules/menu_link_content/src/Entity/MenuLinkContent.php b/core/modules/menu_link_content/src/Entity/MenuLinkContent.php index c9a7fca..c3482a0 100644 --- a/core/modules/menu_link_content/src/Entity/MenuLinkContent.php +++ b/core/modules/menu_link_content/src/Entity/MenuLinkContent.php @@ -277,7 +277,7 @@ public static function baseFieldDefinitions(EntityTypeInterface $entity_type) { $fields['menu_name'] = BaseFieldDefinition::create('string') ->setLabel(t('Menu name')) ->setDescription(t('The menu name. All links with the same menu name (such as "tools") are part of the same menu.')) - ->setSetting('default_value', 'tools'); + ->setDefaultValue('tools'); $fields['link'] = BaseFieldDefinition::create('link') ->setLabel(t('Link')) @@ -295,7 +295,7 @@ public static function baseFieldDefinitions(EntityTypeInterface $entity_type) { $fields['external'] = BaseFieldDefinition::create('boolean') ->setLabel(t('External')) ->setDescription(t('A flag to indicate if the link points to a full URL starting with a protocol, like http:// (1 = external, 0 = internal).')) - ->setSetting('default_value', FALSE); + ->setDefaultValue(FALSE); $fields['weight'] = BaseFieldDefinition::create('integer') ->setLabel(t('Weight'))