public function getMainComponents() {
    $base_path = $this->getBaseComponentPath();

    $filter = function (Extension $module) use ($base_path) {
      return dirname($module->getPath()) == $base_path;
    };

    return array_filter($this->getAll(), $filter);
  }
public function getMainComponents() {
    $base_path = $this->getBaseComponentPath();

    $filter = function (Extension $module) use ($base_path) {
      return dirname($module->getPath()) == $base_path;
    };

    return array_filter($this->getAll(), $filter);
  }
public function getMainComponents ( ) { $ base_path = $ this -> getBaseComponentPath ( ) ; $ filter = function ( Extension $ module ) use ( $ base_path ) { return dirname ( $ module -> getPath ( ) ) == $ base_path ; } ; return array_filter ( $ this -> getAll ( ) , $ filter ) ; }
Returns extension objects for all main WxT components.

@return Extension[]
Array of extension objects for top-level WxT components.
Returns extension objects for all main WxT components .