Commit 64cd1211 authored by catch's avatar catch

Issue #2225699 by czigor, jessebeach: Set all revisionable fields to revisionable.

parent 682a214a
......@@ -176,7 +176,8 @@ public static function baseFieldDefinitions(EntityTypeInterface $entity_type) {
$fields['info'] = FieldDefinition::create('string')
->setLabel(t('Subject'))
->setDescription(t('The custom block name.'));
->setDescription(t('The custom block name.'))
->setRevisionable(TRUE);
$fields['type'] = FieldDefinition::create('entity_reference')
->setLabel(t('Block type'))
......@@ -185,11 +186,13 @@ public static function baseFieldDefinitions(EntityTypeInterface $entity_type) {
$fields['log'] = FieldDefinition::create('string')
->setLabel(t('Revision log message'))
->setDescription(t('The revision log message.'));
->setDescription(t('The revision log message.'))
->setRevisionable(TRUE);
$fields['changed'] = FieldDefinition::create('changed')
->setLabel(t('Changed'))
->setDescription(t('The time that the custom block was last edited.'));
->setDescription(t('The time that the custom block was last edited.'))
->setRevisionable(TRUE);
return $fields;
}
......
......@@ -355,7 +355,8 @@ public static function baseFieldDefinitions(EntityTypeInterface $entity_type) {
$fields['langcode'] = FieldDefinition::create('language')
->setLabel(t('Language code'))
->setDescription(t('The node language code.'));
->setDescription(t('The node language code.'))
->setRevisionable(TRUE);
$fields['title'] = FieldDefinition::create('string')
->setLabel(t('Title'))
......
......@@ -60,6 +60,10 @@ public static function baseFieldDefinitions(EntityTypeInterface $entity_type) {
->setDescription(t('The version id of the test entity.'))
->setReadOnly(TRUE);
$fields['langcode']->setRevisionable(TRUE);
$fields['name']->setRevisionable(TRUE);
$fields['user_id']->setRevisionable(TRUE);
return $fields;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment