original_string: private function setLoadAfterLegacyModules(): void
      {
          static $legacy = [
              'core',
              'calendar',
              'comments',
              'faq',
              'listing',
              'news',
              'newsletter',
          ];
  
          $modules = array_merge($legacy, [$this->getName()]);
          sort($modules);
          $modules = array_values($modules);
          array_splice($modules, array_search($this->getName(), $modules, true));
  
          if (!\in_array('core', $modules, true)) {
              $modules[] = 'core';
          }
  
          $this->setLoadAfter($modules);
      }
code: private function setLoadAfterLegacyModules(): void
      {
          static $legacy = [
              'core',
              'calendar',
              'comments',
              'faq',
              'listing',
              'news',
              'newsletter',
          ];
  
          $modules = array_merge($legacy, [$this->getName()]);
          sort($modules);
          $modules = array_values($modules);
          array_splice($modules, array_search($this->getName(), $modules, true));
  
          if (!\in_array('core', $modules, true)) {
              $modules[] = 'core';
          }
  
          $this->setLoadAfter($modules);
      }
code_tokens: private function setLoadAfterLegacyModules ( ) : void { static $ legacy = [ 'core' , 'calendar' , 'comments' , 'faq' , 'listing' , 'news' , 'newsletter' , ] ; $ modules = array_merge ( $ legacy , [ $ this -> getName ( ) ] ) ; sort ( $ modules ) ; $ modules = array_values ( $ modules ) ; array_splice ( $ modules , array_search ( $ this -> getName ( ) , $ modules , true ) ) ; if ( ! \ in_array ( 'core' , $ modules , true ) ) { $ modules [ ] = 'core' ; } $ this -> setLoadAfter ( $ modules ) ; }
docstring: Adjusts the configuration so the module is loaded after the legacy modules.
docstring_tokens: Adjusts the configuration so the module is loaded after the legacy modules .