private function printPermissionSummary($options, $heading = '') {
    // Print permission info.
    if (!empty($options)) {
      drush_print("{$heading}");

      foreach ($options as $role => $perms) {
        foreach ($options[$role] as &$grant) {
          $grant = ($grant == 0) ? dt('revoke') : dt('grant');
        }

        drush_print($role, 1);
        drush_print_format([$options[$role]], 'key-value-list');
      }
    }
  }
private function printPermissionSummary($options, $heading = '') {
    // Print permission info.
    if (!empty($options)) {
      drush_print("{$heading}");

      foreach ($options as $role => $perms) {
        foreach ($options[$role] as &$grant) {
          $grant = ($grant == 0) ? dt('revoke') : dt('grant');
        }

        drush_print($role, 1);
        drush_print_format([$options[$role]], 'key-value-list');
      }
    }
  }
private function printPermissionSummary ( $ options , $ heading = '' ) { // Print permission info. if ( ! empty ( $ options ) ) { drush_print ( "{$heading}" ) ; foreach ( $ options as $ role => $ perms ) { foreach ( $ options [ $ role ] as & $ grant ) { $ grant = ( $ grant == 0 ) ? dt ( 'revoke' ) : dt ( 'grant' ) ; } drush_print ( $ role , 1 ) ; drush_print_format ( [ $ options [ $ role ] ] , 'key-value-list' ) ; } } }
Print a summary of the permission section.

@param array $options
The array of permission information from the yaml file.
Print a summary of the permission section .