You are here

articles__1_2.inc in RESTful 7

File

modules/restful_example/plugins/restful/node/articles/1.2/articles__1_2.inc
View source
<?php

$plugin = array(
  'label' => t('Articles'),
  'resource' => 'articles',
  'name' => 'articles__1_2',
  'entity_type' => 'node',
  'bundle' => 'article',
  'description' => t('Export the article content type with "cookie" authentication.'),
  'class' => 'RestfulExampleArticlesResource',
  // Set the minor version.
  'minor_version' => 2,
  // Set the authentication to "cookie".
  'authentication_types' => array(
    'cookie',
  ),
);