function RevisionRouteProviderTest::providerOperationAccessRevisionRoutes

Same name in other branches
  1. 10 core/tests/Drupal/KernelTests/Core/Entity/RevisionRouteProviderTest.php \Drupal\KernelTests\Core\Entity\RevisionRouteProviderTest::providerOperationAccessRevisionRoutes()

Data provider for testOperationAccessRevisionRoutes.

Return value

array Data for testing.

File

core/tests/Drupal/KernelTests/Core/Entity/RevisionRouteProviderTest.php, line 109

Class

RevisionRouteProviderTest
Tests revision route provider.

Namespace

Drupal\KernelTests\Core\Entity

Code

public static function providerOperationAccessRevisionRoutes() : array {
    $data = [];
    $data['view revision'] = [
        'revision',
        'view revision',
    ];
    $data['revert revision'] = [
        'revision-revert-form',
        'revert',
    ];
    $data['delete revision'] = [
        'revision-delete-form',
        'delete revision',
    ];
    return $data;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.