public function OpignoActivityType::getImage in Opigno module 3.x
Same name and namespace in other branches
- 8 src/Entity/OpignoActivityType.php \Drupal\opigno_module\Entity\OpignoActivityType::getImage()
Gets the Activity type image entity.
Return value
\Drupal\file\Entity\File Activity type image object.
Overrides OpignoActivityTypeInterface::getImage
File
- src/
Entity/ OpignoActivityType.php, line 128
Class
- OpignoActivityType
- Defines the Activity type entity.
Namespace
Drupal\opigno_module\EntityCode
public function getImage() {
if (isset($this->image[0])) {
$image = File::load($this->image[0]);
return $image;
}
else {
return NULL;
}
}