[ '#type' => 'radios', '#title' => $this->t('Processed URL format'), '#default_value' => $defaults['protocol_style'], '#options' => [ 'full' => $this->t('Full URL (http://example.com/foo/bar)'), 'proto-rel' => $this->t('Protocol relative URL (//example.com/foo/bar)'), 'path' => $this->t('Path relative to server root (/foo/bar)'), ], '#description' => t('The Full URL option is best for stopping broken images and links in syndicated content (such as in RSS feeds), but will likely lead to problems if your site is accessible by both HTTP and HTTPS. Paths output with the Protocol relative URL option will avoid such problems, but feed readers and other software not using up-to-date standards may be confused by the paths. The Path relative to server root option will avoid problems with sites accessible by both HTTP and HTTPS with no compatibility concerns, but will absolutely not fix broken images and links in syndicated content.'), '#weight' => 10, ], 'local_paths' => [ '#type' => 'textarea', '#title' => $this->t('All base paths for this site'), '#default_value' => $defaults['local_paths'], '#description' => $this->t('If this site is or was available at more than one base path or URL, enter them here, separated by line breaks. For example, if this site is live at http://example.com/ but has a staging version at http://dev.example.org/staging/, you would enter both those URLs here. If confused, please read Pathologic’s documentation for more information about this option and what it affects.', [':docs' => 'https://www.drupal.org/node/257026']), '#weight' => 20, ], ]; } }