Commit 37e0bf87 authored by catch's avatar catch

Issue #1843650 by jenlampton: Mark hook_process*() deprecated.

parent 1fcea0a5
...@@ -172,6 +172,10 @@ function hook_preprocess_HOOK(&$variables) { ...@@ -172,6 +172,10 @@ function hook_preprocess_HOOK(&$variables) {
* The variables array (modify in place). * The variables array (modify in place).
* @param $hook * @param $hook
* The name of the theme hook. * The name of the theme hook.
*
* @deprecated as of Drupal 8.0, the process layer will be removed. Use
* preprocess instead and pass render arrays or objects with __toString()
* methods to templates and theme functions.
*/ */
function hook_process(&$variables, $hook) { function hook_process(&$variables, $hook) {
// Wraps variables in RDF wrappers. // Wraps variables in RDF wrappers.
...@@ -198,6 +202,10 @@ function hook_process(&$variables, $hook) { ...@@ -198,6 +202,10 @@ function hook_process(&$variables, $hook) {
* *
* @param $variables * @param $variables
* The variables array (modify in place). * The variables array (modify in place).
*
* @deprecated as of Drupal 8.0, the process layer will be removed. Use
* preprocess instead and pass render arrays or objects with __toString()
* methods to templates and theme functions.
*/ */
function hook_process_HOOK(&$variables) { function hook_process_HOOK(&$variables) {
// @todo There are no use-cases in Drupal core for this hook. Find one from a // @todo There are no use-cases in Drupal core for this hook. Find one from a
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment