/**
  * Add a bundle condition to a pathauto pattern.
  *
  * @param \Drupal\pathauto\PathautoPatternInterface $pattern
  *   The pattern.
  * @param string $entity_type
  *   The entity type ID.
  * @param string $bundle
  *   The bundle
  */
 protected function addBundleCondition(PathautoPatternInterface $pattern, $entity_type, $bundle)
 {
     $pattern->addSelectionCondition(['id' => 'entity_bundle:' . $entity_type, 'bundles' => [$bundle => $bundle], 'negate' => FALSE, 'context_mapping' => [$entity_type => $entity_type]]);
 }