PHP Class Neos\ContentRepository\Migration\Filters\NodeType

Inheritance: implements Neos\ContentRepository\Migration\Filters\FilterInterface
Afficher le fichier Open project: neos/neos-development-collection

Protected Properties

Свойство 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.

Méthodes publiques

Méthode 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 méthode

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
Résultat boolean

setExclude() public méthode

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

setNodeType() public méthode

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

setWithSubTypes() public méthode

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

Property Details

$exclude protected_oe property

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

$nodeTypeName protected_oe property

The node type to match on.
protected string $nodeTypeName
Résultat string

$withSubTypes protected_oe property

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