Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何从控制器中获取 NodeType 信息?例如,用于检查访问权限?
我不确定这是否是您要求的:
您可以像这样访问控制器中的节点属性(例如,对于扩展):
$myOwnProperty = $this->request->getInternalArgument('__myOwnProperty');
必须在 Configuration\Settings.yaml 中为节点类型定义“myOwnProperty”
内部参数在属性名称前有两个下划线。