function OEmbedTestTrait::getFixturesUrl
Same name in other branches
- 9 core/modules/media/tests/src/Traits/OEmbedTestTrait.php \Drupal\Tests\media\Traits\OEmbedTestTrait::getFixturesUrl()
- 8.9.x core/modules/media/tests/src/Traits/OEmbedTestTrait.php \Drupal\Tests\media\Traits\OEmbedTestTrait::getFixturesUrl()
- 10 core/modules/media/tests/src/Traits/OEmbedTestTrait.php \Drupal\Tests\media\Traits\OEmbedTestTrait::getFixturesUrl()
Returns the absolute URL of the oEmbed fixtures directory.
Return value
string
1 call to OEmbedTestTrait::getFixturesUrl()
- OEmbedTestTrait::lockHttpClientToFixtures in core/
modules/ media/ tests/ src/ Traits/ OEmbedTestTrait.php - Configures the HTTP client to always use the fixtures directory.
File
-
core/
modules/ media/ tests/ src/ Traits/ OEmbedTestTrait.php, line 30
Class
- OEmbedTestTrait
- Contains helper functions for testing oEmbed functionality in isolation.
Namespace
Drupal\Tests\media\TraitsCode
protected function getFixturesUrl() : string {
return $this->baseUrl . '/' . $this->getFixturesDirectory();
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.