protected function DemoSystem::fetchImage in Open Social 8.5
Same name and namespace in other branches
- 8.9 modules/custom/social_demo/src/DemoSystem.php \Drupal\social_demo\DemoSystem::fetchImage()
- 8.2 modules/custom/social_demo/src/DemoSystem.php \Drupal\social_demo\DemoSystem::fetchImage()
- 8.3 modules/custom/social_demo/src/DemoSystem.php \Drupal\social_demo\DemoSystem::fetchImage()
- 8.4 modules/custom/social_demo/src/DemoSystem.php \Drupal\social_demo\DemoSystem::fetchImage()
- 8.6 modules/custom/social_demo/src/DemoSystem.php \Drupal\social_demo\DemoSystem::fetchImage()
- 8.7 modules/custom/social_demo/src/DemoSystem.php \Drupal\social_demo\DemoSystem::fetchImage()
- 8.8 modules/custom/social_demo/src/DemoSystem.php \Drupal\social_demo\DemoSystem::fetchImage()
- 10.3.x modules/custom/social_demo/src/DemoSystem.php \Drupal\social_demo\DemoSystem::fetchImage()
- 10.0.x modules/custom/social_demo/src/DemoSystem.php \Drupal\social_demo\DemoSystem::fetchImage()
- 10.1.x modules/custom/social_demo/src/DemoSystem.php \Drupal\social_demo\DemoSystem::fetchImage()
- 10.2.x modules/custom/social_demo/src/DemoSystem.php \Drupal\social_demo\DemoSystem::fetchImage()
Prepares data about an image.
Parameters
string $image: The image by uuid.
Return value
array Returns an array.
1 call to DemoSystem::fetchImage()
- DemoSystem::createContent in modules/
custom/ social_demo/ src/ DemoSystem.php - Creates content.
File
- modules/
custom/ social_demo/ src/ DemoSystem.php, line 245
Class
- DemoSystem
- Class DemoSystem.
Namespace
Drupal\social_demoCode
protected function fetchImage($image) {
$value = NULL;
$files = $this->fileStorage
->loadByProperties([
'uuid' => $image,
]);
if ($files) {
return current($files);
}
return $value;
}