function ConfigDependenciesTest::providerBasicDependencies
Return value
array An array with numerical keys: 0. The original REST resource configuration.
File
- 
              core/
modules/ rest/ tests/ src/ Kernel/ Entity/ ConfigDependenciesTest.php, line 59  
Class
- ConfigDependenciesTest
 - @coversDefaultClass \Drupal\rest\Entity\ConfigDependencies[[api-linebreak]]
 
Namespace
Drupal\Tests\rest\Kernel\EntityCode
public function providerBasicDependencies() {
  return [
    'method' => [
      [
        'plugin_id' => 'entity:entity_test',
        'granularity' => RestResourceConfigInterface::METHOD_GRANULARITY,
        'configuration' => [
          'GET' => [
            'supported_auth' => [
              'basic_auth',
            ],
            'supported_formats' => [
              'json',
            ],
          ],
          'POST' => [
            'supported_auth' => [
              'cookie',
            ],
            'supported_formats' => [
              'hal_json',
            ],
          ],
        ],
      ],
    ],
    'resource' => [
      [
        'plugin_id' => 'entity:entity_test',
        'granularity' => RestResourceConfigInterface::RESOURCE_GRANULARITY,
        'configuration' => [
          'methods' => [
            'GET',
            'POST',
          ],
          'formats' => [
            'json',
            'hal_json',
          ],
          'authentication' => [
            'cookie',
            'basic_auth',
          ],
        ],
      ],
    ],
  ];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.