Issue #2698057 by gambry, ryan.gibson, idebr, Mac_Weber, angelamnr, Martijn de...
Issue #2698057 by gambry, ryan.gibson, idebr, Mac_Weber, angelamnr, Martijn de Wit, chx, andypost, alexpott, Wim Leers, Jacine, dawehner, s_leu, Sam152: Add support for <nolink> and <none> to the LinkWidget UI
$element['uri']['#description']=$this->t('This must be an internal path such as %add-node. You can also start typing the title of a piece of content to select it. Enter %front to link to the front page.',['%add-node'=>'/node/add','%front'=>'<front>']);
$element['uri']['#description']=$this->t('This must be an internal path such as %add-node. You can also start typing the title of a piece of content to select it. Enter %front to link to the front page. Enter %nolink to display link text only.',['%add-node'=>'/node/add','%front'=>'<front>','%nolink'=>'<nolink>']);
}
// If the field is configured to allow both internal and external links,
$element['uri']['#description']=$this->t('Start typing the title of a piece of content to select it. You can also enter an internal path such as %add-node or an external URL such as %url. Enter %front to link to the front page.',['%front'=>'<front>','%add-node'=>'/node/add','%url'=>'http://example.com']);
$element['uri']['#description']=$this->t('Start typing the title of a piece of content to select it. You can also enter an internal path such as %add-node or an external URL such as %url. Enter %front to link to the front page. Enter %nolink to display link text only.',['%front'=>'<front>','%add-node'=>'/node/add','%url'=>'http://example.com','%nolink'=>'<nolink>']);
}
// If the field is configured to allow only external links, show a useful
@@ -197,7 +197,7 @@ public function runFieldUIItem($cardinality, $link_type, $title, $label, $field_
$expected_help_texts=[
LinkItemInterface::LINK_EXTERNAL=>'This must be an external URL such as <em class="placeholder">http://example.com</em>.',
LinkItemInterface::LINK_GENERIC=>'You can also enter an internal path such as <em class="placeholder">/node/add</em> or an external URL such as <em class="placeholder">http://example.com</em>. Enter <em class="placeholder"><front></em> to link to the front page.',
LinkItemInterface::LINK_GENERIC=>'You can also enter an internal path such as <em class="placeholder">/node/add</em> or an external URL such as <em class="placeholder">http://example.com</em>. Enter <em class="placeholder"><front></em> to link to the front page. Enter <em class="placeholder"><nolink></em> to display link text only',