Classes/Command/NodeTypeCommandController.php
public function showCommand(string $nodeType = null): void
    {
        if ($nodeType !== null) {
            /** @var NodeType $nodeType */
            $nodeType = $this->nodeTypeManager->getNodeType($nodeType);
            $configuration = $nodeType->getFullConfiguration();
        } else {
            $nodeTypes = $this->nodeTypeManager->getNodeTypes();
            $configuration = [];
            /** @var NodeType $nodeType */
            foreach ($nodeTypes as $nodeTypeName => $nodeType) {
                $configuration[$nodeTypeName] = $nodeType->getFullConfiguration();
            }
        }
        $this->output(Yaml::dump($configuration, 5, 2));
    }
public function showCommand(string $nodeType = null): void
    {
        if ($nodeType !== null) {
            /** @var NodeType $nodeType */
            $nodeType = $this->nodeTypeManager->getNodeType($nodeType);
            $configuration = $nodeType->getFullConfiguration();
        } else {
            $nodeTypes = $this->nodeTypeManager->getNodeTypes();
            $configuration = [];
            /** @var NodeType $nodeType */
            foreach ($nodeTypes as $nodeTypeName => $nodeType) {
                $configuration[$nodeTypeName] = $nodeType->getFullConfiguration();
            }
        }
        $this->output(Yaml::dump($configuration, 5, 2));
    }
public function showCommand ( string $ nodeType = null ) : void { if ( $ nodeType !== null ) { /** @var NodeType $nodeType */ $ nodeType = $ this -> nodeTypeManager -> getNodeType ( $ nodeType ) ; $ configuration = $ nodeType -> getFullConfiguration ( ) ; } else { $ nodeTypes = $ this -> nodeTypeManager -> getNodeTypes ( ) ; $ configuration = [ ] ; /** @var NodeType $nodeType */ foreach ( $ nodeTypes as $ nodeTypeName => $ nodeType ) { $ configuration [ $ nodeTypeName ] = $ nodeType -> getFullConfiguration ( ) ; } } $ this -> output ( Yaml :: dump ( $ configuration , 5 , 2 ) ) ; }
Show node type configuration after applying all supertypes etc

@param string $nodeType the node type to optionally filter for
@return void
@throws NodeTypeNotFoundException
Show node type configuration after applying all supertypes etc