function PreprocessHooks::pageNodeRevisions
Same name and namespace in other branches
- main core/themes/admin/src/Hook/PreprocessHooks.php \Drupal\admin\Hook\PreprocessHooks::pageNodeRevisions()
Implements hook_preprocess_HOOK() for page__node__revisions.
Attributes
#[Hook('preprocess_page__node__revisions')]
File
-
core/
themes/ admin/ src/ Hook/ PreprocessHooks.php, line 1051
Class
- PreprocessHooks
- Provides preprocess implementations.
Namespace
Drupal\admin\HookCode
public function pageNodeRevisions(array &$page) : void {
// Attach the init script.
$page['#attached']['library'][] = 'admin/revisions';
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.