src/Common/Model/BaseComponent.php
public function getEnabledSlug()
    {
        if ($this->bEnableMultiple) {

            $aOut = [];
            foreach ($this->mEnabled as $oComponent) {
                $aOut[] = $oComponent->slug;
            }
            return $aOut;

        } else {

            return !empty($this->mEnabled->slug) ? $this->mEnabled->slug : null;
        }
    }
public function getEnabledSlug()
    {
        if ($this->bEnableMultiple) {

            $aOut = [];
            foreach ($this->mEnabled as $oComponent) {
                $aOut[] = $oComponent->slug;
            }
            return $aOut;

        } else {

            return !empty($this->mEnabled->slug) ? $this->mEnabled->slug : null;
        }
    }
public function getEnabledSlug ( ) { if ( $ this -> bEnableMultiple ) { $ aOut = [ ] ; foreach ( $ this -> mEnabled as $ oComponent ) { $ aOut [ ] = $ oComponent -> slug ; } return $ aOut ; } else { return ! empty ( $ this -> mEnabled -> slug ) ? $ this -> mEnabled -> slug : null ; } }
Fetches the slug of the enabled components, or array of slugs if bEnableMultiple is true

@return array|string
Fetches the slug of the enabled components or array of slugs if bEnableMultiple is true