@DamienMcKenna , this issue is only coming in drupal console custom entity (drupal generate:entity:content)
& not in drush custom entity (drush generate module-content-entity), thanks
@DameinMckenna , yes i had set a default value in meta config but after that no data has been stored in db and after that i have changed default value during node create or update then data was stored in field_metatag column in db and i had written below code for metatag field and i had also tried metatag field using ui but i had found metatag module was not working proper for custom entity
$fields['field_metatag'] = BaseFieldDefinition::create('metatag')
->setLabel(t('Metatag'))
->setDescription(t('The metatag field for your custom entity.'))
->setDisplayOptions('view', [
'label' => 'hidden',
'type' => 'metatag_empty_formatter',
'weight' => 6,
])
->setDisplayOptions('form', [
'type' => 'metatag_default',
'weight' => 6,
])
->setDisplayConfigurable('form', TRUE)
->setTranslatable(TRUE)
->setDisplayConfigurable('view', TRUE);
SAHIL ROHILLA01 โ created an issue.
SAHIL ROHILLA01 โ made their first commit to this issueโs fork.
SAHIL ROHILLA01 โ made their first commit to this issueโs fork.
Create patch for Hook_help().
Reroll patch-4