Skip to content

Commit 0d79803

Browse files
author
Mateu Aguiló Bosch
committed
Create AuthenticatedResource.
1 parent 2e00b7f commit 0d79803

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

restful_angular_example.module

+2-2
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ function restful_angular_example_page($example) {
211211
// Pass info via Drupal.settings.
212212
$settings['restfulExample'] = array(
213213
'basePath' => url('', array('absolute' => TRUE)),
214-
'csrfToken' => drupal_get_token(\RestfulInterface::TOKEN_VALUE),
214+
'csrfToken' => drupal_get_token(\Drupal\restful\Plugin\authentication\Authentication::TOKEN_VALUE),
215215
'data' => array(
216216
'article' => array(
217217
'label' => 'no',
@@ -245,7 +245,7 @@ function restful_angular_example_page($example) {
245245
$settings['restfulExample'] = array(
246246
'apiPath' => url(variable_get('restful_hook_menu_base_path', 'api'), array('absolute' => TRUE)),
247247
'apiVersion' => 'v1.5',
248-
'csrfToken' => drupal_get_token(\RestfulInterface::TOKEN_VALUE),
248+
'csrfToken' => drupal_get_token(\Drupal\restful\Plugin\authentication\Authentication::TOKEN_VALUE),
249249
'data' => array(
250250
'article' => array(
251251
'label' => 'no',

0 commit comments

Comments
 (0)