original_string: private function initContextConfigurators()
      {
          $this->contextConfigurators = [];
  
          foreach ($this->loadContextConfigurators() as $configurator) {
              if (!$configurator instanceof ContextConfiguratorInterface) {
                  throw new Exception\UnexpectedTypeException(
                      $configurator,
                      'Oro\Component\Layout\ContextConfiguratorInterface'
                  );
              }
  
              $this->contextConfigurators[] = $configurator;
          }
      }
code: private function initContextConfigurators()
      {
          $this->contextConfigurators = [];
  
          foreach ($this->loadContextConfigurators() as $configurator) {
              if (!$configurator instanceof ContextConfiguratorInterface) {
                  throw new Exception\UnexpectedTypeException(
                      $configurator,
                      'Oro\Component\Layout\ContextConfiguratorInterface'
                  );
              }
  
              $this->contextConfigurators[] = $configurator;
          }
      }
code_tokens: private function initContextConfigurators ( ) { $ this -> contextConfigurators = [ ] ; foreach ( $ this -> loadContextConfigurators ( ) as $ configurator ) { if ( ! $ configurator instanceof ContextConfiguratorInterface ) { throw new Exception \ UnexpectedTypeException ( $ configurator , 'Oro\Component\Layout\ContextConfiguratorInterface' ) ; } $ this -> contextConfigurators [ ] = $ configurator ; } }
docstring: Initializes layout context configurators.
  
  @throws Exception\UnexpectedTypeException if any registered context configurators is not
  an instance of ContextConfiguratorInterface
docstring_tokens: Initializes layout context configurators .