This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var observeDOM = (function(){ | |
var MutationObserver = window.MutationObserver || window.WebKitMutationObserver, | |
eventListenerSupported = window.addEventListener; | |
return function(obj, callback){ | |
if( MutationObserver ){ | |
// define a new observer | |
var obs = new MutationObserver(function(mutations, observer){ | |
if( mutations[0].addedNodes.length || mutations[0].removedNodes.length ) | |
callback(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script type="text/javascript" src="plugins/sticky.js"></script> | |
<script type="text/javascript"> | |
var nav=document.querySelectorAll('#nav') | |
Array.prototype.forEach.call(nav, function(nav) { | |
sticky(nav); | |
}); | |
</script> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Drupal\Core\Render\Markup Object | |
( | |
[string:protected] => | |
<!-- THEME DEBUG --> | |
<!-- THEME HOOK: 'message' --> | |
<!-- FILE NAME SUGGESTIONS: | |
* message--2--full.html.twig | |
* message--2.html.twig | |
* message--example-create-node--full.html.twig |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/Entity/Message.php b/src/Entity/Message.php | |
index e000146..e9b322f 100644 | |
--- a/src/Entity/Message.php | |
+++ b/src/Entity/Message.php | |
@@ -317,9 +317,9 @@ class Message extends ContentEntityBase implements MessageInterface { | |
$output = strtr($output, $args); | |
} | |
- $output = \Drupal::token()->replace($output, array('message' => $this), $options); | |
+ $element['#markup'] = \Drupal::token()->replace($output, array('message' => $this), $options); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/message.api.php b/message.api.php | |
index 0f62a1a..4e9366f 100644 | |
--- a/message.api.php | |
+++ b/message.api.php | |
@@ -6,6 +6,8 @@ | |
* | |
*/ | |
+use Drupal\message\Entity\MessageType; | |
+ |