Issue #3183734 by guillaumeg, joseph.olstad: Unable to use inline styles when...
1 unresolved thread
Merge request reports
Activity
308 308 ]; 309 309 310 310 foreach ($output as $key => $value) { 311 $output[$key] = \Drupal::token() 312 ->replace($value, ['message' => $this], $options); 311 // Make sure $value is still a Markup objet by creating it explicitly, as 312 // function token replace will return a string if the token was replaced. 313 // If returned value is already an object that implements MarkupInterface 314 // it is returned unchanged. See create($string) in MarkupTrait.php. - Comment on lines +311 to +314
I think we could improve the documentation a little:
311 // Make sure $value is still a Markup objet by creating it explicitly, as 312 // function token replace will return a string if the token was replaced. 313 // If returned value is already an object that implements MarkupInterface 314 // it is returned unchanged. See create($string) in MarkupTrait.php. 311 // Make sure $value is still a Markup object by creating it explicitly, as 312 // the token replace method will return a string if the token was replaced. 313 // If the returned value is already an object that implements MarkupInterface 314 // it is returned unchanged. See: \Drupal\Component\Render\MarkupTrait::create.
added 4 commits
-
4f5142e0...b5cd4805 - 3 commits from branch
project:8.x-1.x
- fea359e8 - Merge branch message:8.x-1.x into 3183734-unable-to-use
-
4f5142e0...b5cd4805 - 3 commits from branch
added 6 commits
-
fea359e8...5e23eb4b - 5 commits from branch
project:8.x-1.x
- eb489e42 - Merge branch message:8.x-1.x into 3183734-unable-to-use
-
fea359e8...5e23eb4b - 5 commits from branch
Please register or sign in to reply