Update to drupal 8.0.0-rc1. For more information, see https://www.drupal.org/node/2582663
This commit is contained in:
parent
eb34d130a8
commit
f32e58e4b1
8476 changed files with 211648 additions and 170042 deletions
|
@ -7,6 +7,7 @@
|
|||
|
||||
namespace Drupal\Core;
|
||||
|
||||
use Drupal\Component\Render\MarkupInterface;
|
||||
use Drupal\Core\Render\BubbleableMetadata;
|
||||
|
||||
/**
|
||||
|
@ -15,7 +16,7 @@ use Drupal\Core\Render\BubbleableMetadata;
|
|||
* Note: not to be confused with \Drupal\Core\Link, which is for passing around
|
||||
* ungenerated links (typically link text + route name + route parameters).
|
||||
*/
|
||||
class GeneratedLink extends BubbleableMetadata {
|
||||
class GeneratedLink extends BubbleableMetadata implements MarkupInterface {
|
||||
|
||||
/**
|
||||
* The HTML string value containing a link.
|
||||
|
@ -46,4 +47,18 @@ class GeneratedLink extends BubbleableMetadata {
|
|||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public function __toString() {
|
||||
return (string) $this->generatedLink;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public function jsonSerialize() {
|
||||
return $this->__toString();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Reference in a new issue