function content_moderation_preprocess_node

Same name in other branches
  1. 9 core/modules/content_moderation/content_moderation.module \content_moderation_preprocess_node()
  2. 8.9.x core/modules/content_moderation/content_moderation.module \content_moderation_preprocess_node()
  3. 11.x core/modules/content_moderation/content_moderation.module \content_moderation_preprocess_node()

Implements hook_preprocess_HOOK().

File

core/modules/content_moderation/content_moderation.module, line 171

Code

function content_moderation_preprocess_node(&$variables) {
    \Drupal::service('class_resolver')->getInstanceFromDefinition(ContentPreprocess::class)
        ->preprocessNode($variables);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.