🇧🇪Belgium @sfcamil

Account created on 3 July 2013, over 11 years ago
#

Recent comments

🇧🇪Belgium sfcamil

THX,
Working well for me with just two small modifications:
validateConfigurationForm it's not called for me (why?) so I moved the code (Store the trimmed domains as an array) in submitConfigurationForm:

 public function submitConfigurationForm(array &$form, FormStateInterface $form_state) {
    // Store the trimmed domains as an array.
      $domains = explode(PHP_EOL, $form_state->getValue('domains'));
      $form_state->setValue('domains', array_filter(array_map('trim', $domains)));

    $this->configuration['domains'] = $form_state->getValue('domains');
    parent::submitConfigurationForm($form, $form_state);
  }

Changed in evaluate (mb_strtolower)

      $host = mb_strtolower($this->requestStack->getCurrentRequest()->getHost());
      return in_array($host, array_map('mb_strtolower', $domains));
🇧🇪Belgium sfcamil

Hi,
I have exactly the same problem.
With admin/structure/page_manager I see the same error but if I go directly with admin/structure/page_manager/manage/home_page/general the I can work with my page.

Production build 0.71.5 2024