PHP Class Neos\ContentRepository\Migration\Filters\NodeType

Inheritance: implements Neos\ContentRepository\Migration\Filters\FilterInterface
Datei anzeigen Open project: neos/neos-development-collection

Protected Properties

Property Type Description
$exclude boolean If set this NodeType is actually excluded instead exclusively included.
$nodeTypeName string The node type to match on.
$withSubTypes boolean If set to true also all subtypes of the given nodeType will match.

Public Methods

Method Description
matches ( NodeData $node ) : boolean Returns TRUE if the given node is of the node type this filter expects.
setExclude ( boolean $exclude ) Whether the filter should exclude the given NodeType instead of including only this node type.
setNodeType ( string $nodeTypeName ) : void Sets the node type name to match on.
setWithSubTypes ( boolean $withSubTypes ) : void Whether the filter should match also on all subtypes of the configured node type.

Method Details

matches() public method

Returns TRUE if the given node is of the node type this filter expects.
public matches ( NodeData $node ) : boolean
$node Neos\ContentRepository\Domain\Model\NodeData
return boolean

setExclude() public method

Whether the filter should exclude the given NodeType instead of including only this node type.
public setExclude ( boolean $exclude )
$exclude boolean

setNodeType() public method

Sets the node type name to match on.
public setNodeType ( string $nodeTypeName ) : void
$nodeTypeName string
return void

setWithSubTypes() public method

Note: This can only be used with node types still available in the system!
public setWithSubTypes ( boolean $withSubTypes ) : void
$withSubTypes boolean
return void

Property Details

$exclude protected_oe property

If set this NodeType is actually excluded instead exclusively included.
protected bool $exclude
return boolean

$nodeTypeName protected_oe property

The node type to match on.
protected string $nodeTypeName
return string

$withSubTypes protected_oe property

If set to true also all subtypes of the given nodeType will match.
protected bool $withSubTypes
return boolean