/** * Gets the image of this node * @param string $locale Code of the locale * @return string|null Path to the image if set, null otherwise */ public function getImage($locale) { $image = parent::getImage($locale); if ($image) { return $image; } $node = $this->getNode(); if ($node) { return $node->getImage($locale); } }