protected function checkModuleCommand($module, $remote = null)
    {
        $this->readProperties();

        $drushVersion = $this->taskDrushStack()
            ->drupalRootDirectory($this->getConfig()->get('digipolis.root.web'))
            ->getVersion();
        $webroot = $remote ? $remote['currentdir'] : $this->getConfig()->get('digipolis.root.web');
        $projectroot = $remote ? $remote['currentdir'] . '/..' : $this->getConfig()->get('digipolis.root.project');
        if (version_compare($drushVersion, '9.0', '<')) {
            return  'cd -P ' . $projectroot . ' && '
                . 'vendor/bin/drush -r ' . $webroot . ' cr && '
                . 'vendor/bin/drush -r ' . $webroot . ' cc drush && '
                . 'vendor/bin/drush -r ' . $webroot . ' '
                . 'pml --fields=name --status=enabled --type=module --format=list '
                . '| grep "(' . $module . ')"';
        }

        return 'cd -P ' . $projectroot . ' && '
            . 'vendor/bin/drush -r ' . $webroot . ' cr && '
            . 'vendor/bin/drush -r ' . $webroot . ' cc drush && '
            . 'vendor/bin/drush -r ' . $webroot . ' '
            . 'pml --fields=name --status=enabled --type=module --format=list '
            . '| grep "^' . $module . '$"';
    }
protected function checkModuleCommand($module, $remote = null)
    {
        $this->readProperties();

        $drushVersion = $this->taskDrushStack()
            ->drupalRootDirectory($this->getConfig()->get('digipolis.root.web'))
            ->getVersion();
        $webroot = $remote ? $remote['currentdir'] : $this->getConfig()->get('digipolis.root.web');
        $projectroot = $remote ? $remote['currentdir'] . '/..' : $this->getConfig()->get('digipolis.root.project');
        if (version_compare($drushVersion, '9.0', '<')) {
            return  'cd -P ' . $projectroot . ' && '
                . 'vendor/bin/drush -r ' . $webroot . ' cr && '
                . 'vendor/bin/drush -r ' . $webroot . ' cc drush && '
                . 'vendor/bin/drush -r ' . $webroot . ' '
                . 'pml --fields=name --status=enabled --type=module --format=list '
                . '| grep "(' . $module . ')"';
        }

        return 'cd -P ' . $projectroot . ' && '
            . 'vendor/bin/drush -r ' . $webroot . ' cr && '
            . 'vendor/bin/drush -r ' . $webroot . ' cc drush && '
            . 'vendor/bin/drush -r ' . $webroot . ' '
            . 'pml --fields=name --status=enabled --type=module --format=list '
            . '| grep "^' . $module . '$"';
    }
protected function checkModuleCommand ( $ module , $ remote = null ) { $ this -> readProperties ( ) ; $ drushVersion = $ this -> taskDrushStack ( ) -> drupalRootDirectory ( $ this -> getConfig ( ) -> get ( 'digipolis.root.web' ) ) -> getVersion ( ) ; $ webroot = $ remote ? $ remote [ 'currentdir' ] : $ this -> getConfig ( ) -> get ( 'digipolis.root.web' ) ; $ projectroot = $ remote ? $ remote [ 'currentdir' ] . '/..' : $ this -> getConfig ( ) -> get ( 'digipolis.root.project' ) ; if ( version_compare ( $ drushVersion , '9.0' , '<' ) ) { return 'cd -P ' . $ projectroot . ' && ' . 'vendor/bin/drush -r ' . $ webroot . ' cr && ' . 'vendor/bin/drush -r ' . $ webroot . ' cc drush && ' . 'vendor/bin/drush -r ' . $ webroot . ' ' . 'pml --fields=name --status=enabled --type=module --format=list ' . '| grep "(' . $ module . ')"' ; } return 'cd -P ' . $ projectroot . ' && ' . 'vendor/bin/drush -r ' . $ webroot . ' cr && ' . 'vendor/bin/drush -r ' . $ webroot . ' cc drush && ' . 'vendor/bin/drush -r ' . $ webroot . ' ' . 'pml --fields=name --status=enabled --type=module --format=list ' . '| grep "^' . $ module . '$"' ; }
Get the command to check if the locale module is enabled. Command differs
for Drush 9 vs Drush 8.

@return string
Get the command to check if the locale module is enabled . Command differs for Drush 9 vs Drush 8 .