{"record":{"id":"e4f7282cfe649461","repo":"octobercms/october","slug":"treeview-branch-grouping-is-only-supported-for-the","errorCode":null,"errorMessage":"Treeview branch grouping is only supported for the LIST display mode","messagePattern":"Treeview branch grouping is only supported for the LIST display mode","errorType":"exception","errorClass":"SystemException","httpStatus":null,"severity":"error","filePath":"modules/backend/vuecomponents/treeview/NodeDefinition.php","lineNumber":145,"sourceCode":"     */\n    public function __construct(string $label, string $key)\n    {\n        $this->label = $label;\n        $this->key = $key;\n    }\n\n    /**\n     * Sets tree branch display mode - tree or list.\n     * Only the root node display mode is considered.\n     */\n    public function setDisplayMode(string $value)\n    {\n        if (!in_array($value, [self::DISPLAY_MODE_TREE, self::DISPLAY_MODE_LIST])) {\n            throw new SystemException('Invalid tree display mode: '.$value);\n        }\n\n        if ($this->groupBy) {\n            throw new SystemException('Treeview branch grouping is only supported for the LIST display mode');\n        }\n\n        $this->displayMode = $value;\n\n        return $this;\n    }\n\n    /**\n     * Determines whether multiple nodes can be selected.\n     * Only the root node property value is considered.\n     */\n    public function setMultiSelect(bool $value)\n    {\n        $this->multiSelect = $value;\n\n        return $this;\n    }\n","sourceCodeStart":127,"sourceCodeEnd":163,"githubUrl":"https://github.com/octobercms/october/blob/b608633a7e8922487d91a8161499020121c3b3bf/modules/backend/vuecomponents/treeview/NodeDefinition.php#L127-L163","documentation":"Error \"Treeview branch grouping is only supported for the LIST display mode\" thrown in octobercms/october.","triggerScenarios":"Thrown at modules/backend/vuecomponents/treeview/NodeDefinition.php:145 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"b608633a7e8922487d91a8161499020121c3b3bf","analyzedAt":"2026-08-21T04:24:57.515Z","schemaVersion":2},"datasetVersion":"2026-08-21T11:28:35.574Z"}