Commit b3db2047 authored by catch's avatar catch

Issue #2278051 by yched: Remove uses of non-existing 'max_length' setting on EntityRef fields.

parent 2405d102
......@@ -184,8 +184,7 @@ public static function baseFieldDefinitions(EntityTypeInterface $entity_type) {
$fields['type'] = FieldDefinition::create('entity_reference')
->setLabel(t('Block type'))
->setDescription(t('The block type.'))
->setSetting('target_type', 'custom_block_type')
->setSetting('max_length', EntityTypeInterface::BUNDLE_MAX_LENGTH);
->setSetting('target_type', 'custom_block_type');
$fields['log'] = FieldDefinition::create('string_long')
->setLabel(t('Revision log message'))
......
......@@ -357,7 +357,6 @@ public static function baseFieldDefinitions(EntityTypeInterface $entity_type) {
->setLabel(t('Type'))
->setDescription(t('The node type.'))
->setSetting('target_type', 'node_type')
->setSetting('max_length', EntityTypeInterface::BUNDLE_MAX_LENGTH)
->setReadOnly(TRUE);
$fields['langcode'] = FieldDefinition::create('language')
......
......@@ -167,7 +167,6 @@ public static function baseFieldDefinitions(EntityTypeInterface $entity_type) {
->setLabel(t('Shortcut set'))
->setDescription(t('The bundle of the shortcut.'))
->setSetting('target_type', 'shortcut_set')
->setSetting('max_length', EntityTypeInterface::BUNDLE_MAX_LENGTH)
->setRequired(TRUE);
$fields['title'] = FieldDefinition::create('string')
......
......@@ -116,8 +116,7 @@ public static function baseFieldDefinitions(EntityTypeInterface $entity_type) {
$fields['vid'] = FieldDefinition::create('entity_reference')
->setLabel(t('Vocabulary'))
->setDescription(t('The vocabulary to which the term is assigned.'))
->setSetting('target_type', 'taxonomy_vocabulary')
->setSetting('max_length', EntityTypeInterface::BUNDLE_MAX_LENGTH);
->setSetting('target_type', 'taxonomy_vocabulary');
$fields['langcode'] = FieldDefinition::create('language')
->setLabel(t('Language code'))
......
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