public static function Link::fromTextAndUrl in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/lib/Drupal/Core/Link.php \Drupal\Core\Link::fromTextAndUrl()
Creates a Link object from a given Url object.
Parameters
string $text: The text of the link.
\Drupal\Core\Url $url: The Url to create the link for.
Return value
static
1 call to Link::fromTextAndUrl()
- ImageFormatter::settingsForm in core/
modules/ image/ src/ Plugin/ Field/ FieldFormatter/ ImageFormatter.php - Returns a form to configure settings for the formatter.
File
- core/
lib/ Drupal/ Core/ Link.php, line 92 - Contains \Drupal\Core\Link.
Class
- Link
- Defines an object that holds information about a link.
Namespace
Drupal\CoreCode
public static function fromTextAndUrl($text, Url $url) {
return new static($text, $url);
}