2017 © Pedro Peláez
 

magento2-module feature-toggle2

image

opengento/feature-toggle2

  • Sunday, June 25, 2017
  • by jacquesbh
  • Repository
  • 19 Watchers
  • 0 Stars
  • 4 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Feature Toggle module for Magento 2

by Opengento, (*1)

Logo Opengento Feature Toggle for Magento 2, (*2)

This module allows you to use the Feature Flags, or sometimes called "Feature Toggle" functionality., (*3)

To use a toggle, you just have to call the helper, like this:, (*4)

/* @var $toggleHelper \Opengento\FeatureToggle2\Helper\Toggle */
if ($toggleHelper->isToggleActive('my-feature-flag')) {
    // Toggle activated
} else {
    // Toogle inactive
}

XML sample

The filename is toggles.xml, and you have to put it in the etc/ directory of your module., (*5)

<?xml version="1.0"?>
<toggles xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Opengento_FeatureToggle2:etc/toggles.xsd">
    <toggle id="my-feature-flag">
        <label>My Feature Flag</label>
        <description>This feature flag is a sample toggle.</description>
    </toggle>
</toggles>

Contributing

See CONTRIBUTING.md., (*6)

Maintainers

See Contributors list., (*7)

The Versions

25/06 2017

dev-master

9999999-dev

  Sources   Download

MIT

The Requires

 

by Opengento