PHP Class Neos\Neos\Domain\Service\DefaultPrototypeGenerator

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

Protected Properties

Property Type Description
$basePrototypeName string The Name of the prototype that is extended

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

Property Details

$basePrototypeName protected property

The Name of the prototype that is extended
protected string $basePrototypeName
return string