function RESTTestBase::rebuildCache

Rebuilds routing caches.

1 call to RESTTestBase::rebuildCache()
RESTTestBase::enableService in core/modules/rest/src/Tests/RESTTestBase.php
Enables the REST service interface for a specific entity type.

File

core/modules/rest/src/Tests/RESTTestBase.php, line 430

Class

RESTTestBase
Test helper class that provides a REST client method to send HTTP requests.

Namespace

Drupal\rest\Tests

Code

protected function rebuildCache() {
    $this->container
        ->get('router.builder')
        ->rebuildIfNeeded();
}

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