PHP Class Neos\Neos\Domain\Service\DefaultPluginPrototypeGenerator

Inheritance: implements Neos\Neos\Domain\Service\DefaultPrototypeGeneratorInterface
Show file Open project: neos/neos-development-collection

Public Methods

Method Description
generate ( NodeType $nodeType ) : string Generate a TypoScript prototype definition for a given node type

Method Details

generate() public method

A node will be rendered by Neos.Neos:Content by default with a template in resource://PACKAGE_KEY/Private/Templates/NodeTypes/NAME.html and forwards all public node properties to the template TypoScript object.
public generate ( NodeType $nodeType ) : string
$nodeType Neos\ContentRepository\Domain\Model\NodeType
return string