public function TextimageFactory::getStoreUri in Textimage 8.4
Same name and namespace in other branches
- 8.3 src/TextimageFactory.php \Drupal\textimage\TextimageFactory::getStoreUri()
Returns a URI within the textimage_store structure.
Parameters
string $path: The relative path.
string $scheme: (optional) The URI scheme of the textimage_store. If NULL, the scheme set as site default will be used.
Return value
string The full URI for the specified scheme and relative path.
Overrides TextimageFactoryInterface::getStoreUri
2 calls to TextimageFactory::getStoreUri()
- TextimageFactory::flushAll in src/
TextimageFactory.php - Cleans up Textimage.
- TextimageFactory::flushStyle in src/
TextimageFactory.php - Flushes Textimage style data.
File
- src/
TextimageFactory.php, line 271
Class
- TextimageFactory
- Provides a factory for Textimage.
Namespace
Drupal\textimageCode
public function getStoreUri($path, $scheme = NULL) {
if (!$scheme) {
$scheme = $this->configFactory
->get('system.file')
->get('default_scheme');
}
return $scheme . '://textimage_store' . $path;
}