diff --git a/core/modules/field/lib/Drupal/field/Plugin/Core/Entity/FieldInstance.php b/core/modules/field/lib/Drupal/field/Plugin/Core/Entity/FieldInstance.php index 9628256b8b8..1950a9f130f 100644 --- a/core/modules/field/lib/Drupal/field/Plugin/Core/Entity/FieldInstance.php +++ b/core/modules/field/lib/Drupal/field/Plugin/Core/Entity/FieldInstance.php @@ -534,6 +534,26 @@ class FieldInstance extends ConfigEntityBase implements FieldInstanceInterface { return $this->field->translatable; } + /** + * {@inheritdoc} + */ + public function uri() { + $path = \Drupal::entityManager()->getAdminPath($this->entity_type, $this->bundle); + + // Use parent URI as fallback, if path is empty. + if (empty($path)) { + return parent::uri(); + } + + return array( + 'path' => $path . '/fields/' . $this->id(), + 'options' => array( + 'entity_type' => $this->entityType, + 'entity' => $this, + ), + ); + } + /** * {@inheritdoc} */