From 193c713344250b9dce7a1bc7ed4b1b8a9380dd81 Mon Sep 17 00:00:00 2001
From: Nathaniel Catchpole <catch@35733.no-reply.drupal.org>
Date: Wed, 21 Aug 2013 02:23:14 +0100
Subject: [PATCH] Issue #2067531 by mtift: Deprecate variable_* functions.

---
 core/includes/bootstrap.inc | 18 ++++++++++++------
 1 file changed, 12 insertions(+), 6 deletions(-)

diff --git a/core/includes/bootstrap.inc b/core/includes/bootstrap.inc
index 21f312dcea87..5472321288a7 100644
--- a/core/includes/bootstrap.inc
+++ b/core/includes/bootstrap.inc
@@ -889,8 +889,10 @@ function variable_initialize($conf = array()) {
  * @return
  *   The value of the variable. Unserialization is taken care of as necessary.
  *
- * @see variable_del()
- * @see variable_set()
+ * @deprecated This will be removed in Drupal 8.0. Instead, use the
+ *   configuration API.
+ *
+ * @see \Drupal\Core\Config::get()
  */
 function variable_get($name, $default = NULL) {
   global $conf;
@@ -911,8 +913,10 @@ function variable_get($name, $default = NULL) {
  *   The value to set. This can be any PHP data type; these functions take care
  *   of serialization as necessary.
  *
- * @see variable_del()
- * @see variable_get()
+ * @deprecated This will be removed in Drupal 8.0. Instead, use the
+ *   configuration API.
+ *
+ * @see \Drupal\Core\Config::set()
  */
 function variable_set($name, $value) {
   global $conf;
@@ -934,8 +938,10 @@ function variable_set($name, $value) {
  * @param $name
  *   The name of the variable to undefine.
  *
- * @see variable_get()
- * @see variable_set()
+ * @deprecated This will be removed in Drupal 8.0. Instead, use the
+ *   configuration API.
+ *
+ * @see \Drupal\Core\Config::clear()
  */
 function variable_del($name) {
   global $conf;
-- 
GitLab