diff --git a/core/modules/node/lib/Drupal/node/Entity/Node.php b/core/modules/node/lib/Drupal/node/Entity/Node.php index 0f1ae83..71474a9 100644 --- a/core/modules/node/lib/Drupal/node/Entity/Node.php +++ b/core/modules/node/lib/Drupal/node/Entity/Node.php @@ -358,7 +358,7 @@ public static function baseFieldDefinitions(EntityTypeInterface $entity_type) { ->setDescription(t('The node type.')) ->setSettings(array( 'target_type' => 'node_type', - 'max_length' => BUNDLE_MAX_LENGTH, + 'max_length' => EntityTypeInterface::BUNDLE_MAX_LENGTH, )) ->setReadOnly(TRUE); diff --git a/core/modules/shortcut/src/Entity/Shortcut.php b/core/modules/shortcut/src/Entity/Shortcut.php index bcec5aa..06d9e6d 100644 --- a/core/modules/shortcut/src/Entity/Shortcut.php +++ b/core/modules/shortcut/src/Entity/Shortcut.php @@ -169,7 +169,7 @@ public static function baseFieldDefinitions(EntityTypeInterface $entity_type) { ->setDescription(t('The bundle of the shortcut.')) ->setSettings(array( 'target_type' => 'shortcut_set', - 'max_length' => BUNDLE_MAX_LENGTH, + 'max_length' => EntityTypeInterface::BUNDLE_MAX_LENGTH, )) ->setRequired(TRUE);