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