src/Extension/ExtensionManager.php
public function getEnabledExtensions()
    {
        $enabled = [];
        $extensions = $this->getExtensions();

        foreach ($this->getEnabled() as $id) {
            if (isset($extensions[$id])) {
                $enabled[$id] = $extensions[$id];
            }
        }

        return $enabled;
    }
public function getEnabledExtensions()
    {
        $enabled = [];
        $extensions = $this->getExtensions();

        foreach ($this->getEnabled() as $id) {
            if (isset($extensions[$id])) {
                $enabled[$id] = $extensions[$id];
            }
        }

        return $enabled;
    }
public function getEnabledExtensions ( ) { $ enabled = [ ] ; $ extensions = $ this -> getExtensions ( ) ; foreach ( $ this -> getEnabled ( ) as $ id ) { if ( isset ( $ extensions [ $ id ] ) ) { $ enabled [ $ id ] = $ extensions [ $ id ] ; } } return $ enabled ; }
Get only enabled extensions.

@return array
Get only enabled extensions .