2017 © Pedro Peláez
 

magento2-module magento2-svghelper

Magento 2 module that provides a block level helper for reading in an SVG files source from a theme

image

meanbee/magento2-svghelper

Magento 2 module that provides a block level helper for reading in an SVG files source from a theme

  • Friday, November 17, 2017
  • by meanbee
  • Repository
  • 4 Watchers
  • 7 Stars
  • 1,818 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 1 Open issues
  • 4 Versions
  • 21 % Grown

The README.md

Magento 2 SVG Helper

Simple module that provides a block level helper for reading in an SVG files source from a theme in Magento 2., (*1)

Installation

Install this extension via Composer:, (*2)

composer require meanbee/magento2-svghelper

Development

Setting up a development environment

A Docker development environment is included with the project:, (*3)

docker-compose run --rm cli magento-extension-installer Meanbee_SVGHelper \
&& docker-compose up -d

Usage

The SVGHelper is set as data on every block. This means that in your template you can call:, (*4)

<?php echo $block->getData('svgHelper')->getViewSvg('pathtofile.svg') ?>, (*5)

or, (*6)

<?php echo $block->getData('svgHelper')->getViewSvg('Magento_Module::pathtofile.svg') ?>, (*7)

This will output the raw contents of the svg file., (*8)

The Versions

17/11 2017

dev-master

9999999-dev

Magento 2 module that provides a block level helper for reading in an SVG files source from a theme

  Sources   Download

commercial

The Requires

 

by Darren Belding

17/11 2017

1.1.0

1.1.0.0

Magento 2 module that provides a block level helper for reading in an SVG files source from a theme

  Sources   Download

commercial

The Requires

 

by Darren Belding

16/11 2017

dev-1-m2.2-upgrade

dev-1-m2.2-upgrade

Magento 2 module that provides a block level helper for reading in an SVG files source from a theme

  Sources   Download

commercial

The Requires

 

by Darren Belding

10/02 2017

1.0.0

1.0.0.0

Magento 2 module that provides a block level helper for reading in an SVG files source from a theme

  Sources   Download

commercial

The Requires

 

by Darren Belding