removed visibility of base fields in Profile
This commit is contained in:
parent
20469e3aa7
commit
3d8c7f6ca1
@ -209,49 +209,22 @@ class Profile extends RevisionableContentEntityBase implements ProfileInterface
|
|||||||
->setRevisionable(TRUE)
|
->setRevisionable(TRUE)
|
||||||
->setSetting('target_type', 'user')
|
->setSetting('target_type', 'user')
|
||||||
->setSetting('handler', 'default')
|
->setSetting('handler', 'default')
|
||||||
->setTranslatable(TRUE)
|
->setTranslatable(TRUE);
|
||||||
->setDisplayOptions('view', [
|
# ->setDisplayOptions('form', [
|
||||||
'label' => 'inline',
|
# 'type' => 'entity_reference_autocomplete',
|
||||||
'type' => 'author',
|
# 'weight' => 5,
|
||||||
'weight' => 100,
|
# 'settings' => [
|
||||||
])
|
# 'match_operator' => 'CONTAINS',
|
||||||
->setDisplayOptions('form', [
|
# 'size' => '60',
|
||||||
'type' => 'entity_reference_autocomplete',
|
# 'autocomplete_type' => 'tags',
|
||||||
'weight' => 5,
|
# 'placeholder' => '',
|
||||||
'settings' => [
|
# ],
|
||||||
'match_operator' => 'CONTAINS',
|
# ]);
|
||||||
'size' => '60',
|
|
||||||
'autocomplete_type' => 'tags',
|
|
||||||
'placeholder' => '',
|
|
||||||
],
|
|
||||||
]);
|
|
||||||
|
|
||||||
$fields['person'] = BaseFieldDefinition::create('entity_reference')
|
$fields['person'] = BaseFieldDefinition::create('entity_reference')
|
||||||
->setLabel(t('Person'))
|
->setLabel(t('Person'))
|
||||||
->setDescription(t('The person this profile is of.'))
|
->setDescription(t('The person this profile is of.'))
|
||||||
->setSetting('target_type', 'person')
|
->setSetting('target_type', 'person');
|
||||||
->setSetting('handler', 'views')
|
|
||||||
->setSetting('handler_settings', [
|
|
||||||
'view' => [
|
|
||||||
'view_name' => 'persons',
|
|
||||||
'display_name' => 'entity_reference_1',
|
|
||||||
'arguments' => []
|
|
||||||
]
|
|
||||||
])
|
|
||||||
->setDisplayOptions('form', [
|
|
||||||
'type' => 'entity_reference_autocomplete',
|
|
||||||
'weight' => 5,
|
|
||||||
'settings' => [
|
|
||||||
'match_operator' => 'CONTAINS',
|
|
||||||
'size' => '60',
|
|
||||||
'autocomplete_type' => 'tags',
|
|
||||||
'placeholder' => '',
|
|
||||||
],
|
|
||||||
])
|
|
||||||
->setDisplayOptions('view', [
|
|
||||||
'label' => 'above',
|
|
||||||
'weight' => 0,
|
|
||||||
]);
|
|
||||||
|
|
||||||
// This field is computed in a presave hook.
|
// This field is computed in a presave hook.
|
||||||
$fields['name'] = BaseFieldDefinition::create('string')
|
$fields['name'] = BaseFieldDefinition::create('string')
|
||||||
|
Reference in New Issue
Block a user