From ba57f5b96366846025a8f1ea6403934a3c006505 Mon Sep 17 00:00:00 2001 From: webeweb Date: Sun, 20 Mar 2022 20:27:50 +0100 Subject: [PATCH] Clean up --- .../CSS/AbstractImageTwigExtension.php | 52 ------------------- 1 file changed, 52 deletions(-) delete mode 100644 Twig/Extension/CSS/AbstractImageTwigExtension.php diff --git a/Twig/Extension/CSS/AbstractImageTwigExtension.php b/Twig/Extension/CSS/AbstractImageTwigExtension.php deleted file mode 100644 index 839d9d65..00000000 --- a/Twig/Extension/CSS/AbstractImageTwigExtension.php +++ /dev/null @@ -1,52 +0,0 @@ - - * @package WBW\Bundle\BootstrapBundle\Twig\Extension\CSS - * @abstract - */ -abstract class AbstractImageTwigExtension extends AbstractTwigExtension { - - /** - * Displays a Bootstrap image. - * - * @param string|null $src The source - * @param string|null $alt The alternative text. - * @param string|null $width The width. - * @param string|null $height The height. - * @param string|null $class The class. - * @param string|null $useMap The use map. - * @return string Returns the Bootstrap image. - */ - protected function bootstrapImage(?string $src, ?string $alt, ?string $width, ?string $height, ?string $class, ?string $useMap): string { - - $template = ""; - - $attributes = [ - "src" => $src, - "alt" => $alt, - "width" => $width, - "height" => $height, - "class" => $class, - "usemap" => $useMap, - ]; - - return str_replace(["%attributes%"], [StringHelper::parseArray($attributes)], $template); - } -}