public function ImagePopup::render in Opigno module 8
Same name and namespace in other branches
- 3.x ActivityTypes/opigno_video/src/Controller/ImagePopup.php \Drupal\opigno_video\Controller\ImagePopup::render()
Render.
Return value
string Return Hello string.
1 string reference to 'ImagePopup::render'
- opigno_video.routing.yml in ActivityTypes/
opigno_video/ opigno_video.routing.yml - ActivityTypes/opigno_video/opigno_video.routing.yml
File
- ActivityTypes/
opigno_video/ src/ Controller/ ImagePopup.php, line 21
Class
- ImagePopup
- Class ImagePopup.
Namespace
Drupal\opigno_video\ControllerCode
public function render($fid) {
$file = File::load($fid);
return [
'#theme' => 'image_style',
'#style_name' => 'large',
'#uri' => $file
->getFileUri(),
];
}