src/Composer/Plugin.php
protected function isDrupalPackage($package)
    {
        if (isset($package) && $package instanceof PackageInterface && strstr($package->getName(), 'drupal/')) {
            return true;
        }
        return false;
    }
protected function isDrupalPackage($package)
    {
        if (isset($package) && $package instanceof PackageInterface && strstr($package->getName(), 'drupal/')) {
            return true;
        }
        return false;
    }
protected function isDrupalPackage ( $ package ) { if ( isset ( $ package ) && $ package instanceof PackageInterface && strstr ( $ package -> getName ( ) , 'drupal/' ) ) { return true ; } return false ; }
Checks to see if a given package is a Drupal package.

@param $package

@return bool
TRUE if the package is a Drupal package.
Checks to see if a given package is a Drupal package .