Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * Implements hook_preprocess_HOOK().
- */
- function MY_MODULE_preprocess_html(&$variables) {
- if (Drupal::routeMatch()->getRouteName() == 'my.route') {
- $variables['attributes']['class'][] = 'my-class';
- }
- }
- if ((Drupal::routeMatch()->getRouteName() == 'my.route') && ($this->moderationInformation->hasPendingRevision($node))) {}
Add Comment
Please, Sign In to add comment