Commit c0683a41 authored by alexpott's avatar alexpott
Browse files

Issue #2371499 by er.pushpinderrana | Alex Bukach: Fixed Misprint in State API example.

parent a36ff846
...@@ -186,7 +186,7 @@ ...@@ -186,7 +186,7 @@
* // Find out when cron was last run; the key is 'system.cron_last'. * // Find out when cron was last run; the key is 'system.cron_last'.
* $time = $state->get('system.cron_last'); * $time = $state->get('system.cron_last');
* // Set the cron run time to the current request time. * // Set the cron run time to the current request time.
* $state->set('system_cron_last', REQUEST_TIME); * $state->set('system.cron_last', REQUEST_TIME);
* @endcode * @endcode
* *
* For more on the State API, see https://drupal.org/developing/api/8/state * For more on the State API, see https://drupal.org/developing/api/8/state
......
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