Skip to content

Commit

Permalink
[DRUP-728] Check for the address subdivision repository service
Browse files Browse the repository at this point in the history
  • Loading branch information
shadcn committed Apr 25, 2019
1 parent b478e92 commit 3fcf141
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion apigee_devportal_kickstart.profile
Expand Up @@ -48,7 +48,9 @@ function apigee_devportal_kickstart_install_tasks(&$install_state) {
];

// Add monetization tasks if the configured organization is monetizable.
if (Drupal::moduleHandler()->moduleExists('apigee_edge') && Drupal::hasService('apigee_devportal_kickstart.monetization') && Drupal::service('apigee_devportal_kickstart.monetization')->isMonetizable()) {
if (Drupal::moduleHandler()->moduleExists('apigee_edge')
&& Drupal::hasService('address.subdivision_repository')
&& Drupal::hasService('apigee_devportal_kickstart.monetization') && Drupal::service('apigee_devportal_kickstart.monetization')->isMonetizable()) {
$tasks = array_merge([
ApigeeDevportalKickstartMonetizationConfigurationForm::class => [
'display_name' => t('Configure monetization'),
Expand Down

0 comments on commit 3fcf141

Please sign in to comment.