Finished making person not revisionable
Am making stuff not revisionable for the initial hosted release and then will think about how to properly implement revisioning later. Also removed now-unneeded contact details types vocabulary (contact details type is now a text field)
This commit is contained in:
parent
4d4f279148
commit
6d63d5f328
@ -1,8 +0,0 @@
|
|||||||
langcode: en
|
|
||||||
status: true
|
|
||||||
dependencies: { }
|
|
||||||
name: 'Contact Details Types'
|
|
||||||
vid: contact_details_types
|
|
||||||
description: 'E.g. "Home", "Business"'
|
|
||||||
hierarchy: 0
|
|
||||||
weight: 0
|
|
@ -151,7 +151,6 @@ class Person extends ContentEntityBase implements PersonInterface {
|
|||||||
$fields['user_id'] = BaseFieldDefinition::create('entity_reference')
|
$fields['user_id'] = BaseFieldDefinition::create('entity_reference')
|
||||||
->setLabel(t('Authored by'))
|
->setLabel(t('Authored by'))
|
||||||
->setDescription(t('The user ID of author of the Person entity.'))
|
->setDescription(t('The user ID of author of the Person entity.'))
|
||||||
->setRevisionable(TRUE)
|
|
||||||
->setSetting('target_type', 'user')
|
->setSetting('target_type', 'user')
|
||||||
->setSetting('handler', 'default')
|
->setSetting('handler', 'default')
|
||||||
# ->setDisplayOptions('view', [
|
# ->setDisplayOptions('view', [
|
||||||
@ -180,7 +179,6 @@ class Person extends ContentEntityBase implements PersonInterface {
|
|||||||
$fields['first_name'] = BaseFieldDefinition::create('string')
|
$fields['first_name'] = BaseFieldDefinition::create('string')
|
||||||
->setLabel(t('First Name'))
|
->setLabel(t('First Name'))
|
||||||
->setDescription(t('First Name.'))
|
->setDescription(t('First Name.'))
|
||||||
->setRevisionable(TRUE)
|
|
||||||
->setSettings([
|
->setSettings([
|
||||||
'max_length' => 50,
|
'max_length' => 50,
|
||||||
'text_processing' => 0,
|
'text_processing' => 0,
|
||||||
|
Reference in New Issue
Block a user