Leftover from #2417793-10: Allow entity: URIs to be entered in link fields :

+++ b/core/modules/link/src/Plugin/Field/FieldWidget/LinkWidget.php
@@ -219,19 +231,34 @@ public function validateTitle(&$element, FormStateInterface $form_state, $form)
+  protected function getUserEnteredStringAsUri($uri) {

getFooAsBar($bar) is a bit weird - that $uri param is not a URI yet, that's the whole point :-)
--> s/$uri/$string/ ?

Comments

yched’s picture

yched’s picture

Status: Active » Needs review
dawehner’s picture

Status: Needs review » Reviewed & tested by the community
Issue tags: +Quickfix

This is a good idea IMHO

yched’s picture

Wow, that was quick :-)

Actually, forgot one instance in the phpdoc.

jibran’s picture

+1 for RTBC.

webchick’s picture

Status: Reviewed & tested by the community » Fixed

Committed and pushed to 8.0.x. Thanks!

  • webchick committed 03f372f on 8.0.x
    Issue #2418109 by yched: Misleading param name in LinkWidget::...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.