diff --git a/core/modules/file/src/Plugin/Field/FieldFormatter/UrlPlainFormatter.php b/core/modules/file/src/Plugin/Field/FieldFormatter/UrlPlainFormatter.php
index ccb97d5..ee1aa0a 100644
--- a/core/modules/file/src/Plugin/Field/FieldFormatter/UrlPlainFormatter.php
+++ b/core/modules/file/src/Plugin/Field/FieldFormatter/UrlPlainFormatter.php
@@ -3,6 +3,7 @@
 namespace Drupal\file\Plugin\Field\FieldFormatter;
 
 use Drupal\Core\Field\FieldItemListInterface;
+use Drupal\Core\Form\FormStateInterface;
 
 /**
  * Plugin implementation of the 'file_url_plain' formatter.
@@ -20,12 +21,55 @@ class UrlPlainFormatter extends FileFormatterBase {
   /**
    * {@inheritdoc}
    */
+  public static function defaultSettings() {
+    $settings = parent::defaultSettings();
+
+    $settings['absolute_url'] = FALSE;
+    return $settings;
+  }
+
+  /**
+   * {@inheritdoc}
+   */
+  public function settingsForm(array $form, FormStateInterface $form_state) {
+    $form = parent::settingsForm($form, $form_state);
+
+    $form['absolute_url'] = array(
+      '#type' => 'checkbox',
+      '#title' => t('Render as absolute url'),
+      '#description' => t('If checked, links will be rendered as absolute urls.'),
+      '#default_value' => $this->getSetting('absolute_url'),
+    );
+
+    return $form;
+  }
+
+  /**
+   * {@inheritdoc}
+   */
+  public function settingsSummary() {
+    $summary = array();
+    $summary[] = t('URL rendering settings');
+
+    return $summary;
+  }
+
+  /**
+   * {@inheritdoc}
+   */
   public function viewElements(FieldItemListInterface $items, $langcode) {
     $elements = array();
 
     foreach ($this->getEntitiesToView($items, $langcode) as $delta => $file) {
+      if ($this->getSetting('absolute_url') && $this->getSetting('absolute_url') == 1) {
+        $markup = file_create_url($file->getFileUri());
+      }
+      else {
+        $markup = file_url_transform_relative(file_create_url($file->getFileUri()));
+      }
+
       $elements[$delta] = array(
-        '#markup' => file_url_transform_relative(file_create_url($file->getFileUri())),
+        '#markup' => $markup,
         '#cache' => array(
           'tags' => $file->getCacheTags(),
         ),
