public ContentPreprocess::preprocessNode(array &$variables)
Wrapper for hook_preprocess_HOOK().
Parameters
array $variables: Theme variables to preprocess.
File
- core/modules/content_moderation/src/ContentPreprocess.php, line 47
Class
- ContentPreprocess
- Determines whether a route is the "Latest version" tab of a node.
Namespace
Drupal\content_moderation
Code
1 2 3 4 5 | public function preprocessNode( array & $variables ) { // Set the 'page' template variable when the node is being displayed on the // "Latest version" tab provided by content_moderation. $variables [ 'page' ] = $variables [ 'page' ] || $this ->isLatestVersionPage( $variables [ 'node' ]); } |
Please login to continue.