protected function TokenReplacer::getBubbleableMetadata in Advanced Entity Tokens 2.x
Fetches the bubbleable metadata currently in use by the service.
Return value
\Drupal\Core\Render\BubbleableMetadata The bubbleable metadata.
Throws
\Exception If the data is missing.
See also
\Drupal\Core\Utility\Token::replace()
1 call to TokenReplacer::getBubbleableMetadata()
- TokenReplacer::getEntityAttributeReplacements in src/
TokenReplacer.php - Fetches replacements for entity attributes (e.g. "[aet:node:999:changed]").
File
- src/
TokenReplacer.php, line 190
Class
- TokenReplacer
- Class TokenReplacer.
Namespace
Drupal\aetCode
protected function getBubbleableMetadata() {
if (!isset($this->bubbleableMetadata)) {
throw new \Exception('This operation requires that the service be set with options.');
}
return $this->bubbleableMetadata;
}