public function handleGenerateHtml(GenerateHtmlEvent $event)
    {
        /** @var Image $imageAdapter */
        $imageAdapter = $this->framework->getAdapter(Image::class);

        $event->setHtml(
            $imageAdapter->getHtml(
                $event->getSrc(),
                $event->getAlt(),
                $event->getAttributes()
            )
        );
    }
public function handleGenerateHtml(GenerateHtmlEvent $event)
    {
        /** @var Image $imageAdapter */
        $imageAdapter = $this->framework->getAdapter(Image::class);

        $event->setHtml(
            $imageAdapter->getHtml(
                $event->getSrc(),
                $event->getAlt(),
                $event->getAttributes()
            )
        );
    }
public function handleGenerateHtml ( GenerateHtmlEvent $ event ) { /** @var Image $imageAdapter */ $ imageAdapter = $ this -> framework -> getAdapter ( Image :: class ) ; $ event -> setHtml ( $ imageAdapter -> getHtml ( $ event -> getSrc ( ) , $ event -> getAlt ( ) , $ event -> getAttributes ( ) ) ) ; }
Handle a get html for image event.

@param GenerateHtmlEvent $event The event.

@return void
Handle a get html for image event .