Neos\ContentRepository\Command\NodeCommandControllerPlugin::getSubCommandDescription PHP Method

getSubCommandDescription() public static method

Returns a piece of description for the specific task the plugin solves for the specified command
public static getSubCommandDescription ( string $controllerCommandName ) : string
$controllerCommandName string Name of the command in question, for example "repair"
return string A piece of text to be included in the overall description of the node:xy command
    public static function getSubCommandDescription($controllerCommandName)
    {
        switch ($controllerCommandName) {
            case 'repair':
                return <<<'HELPTEXT'
<u>Remove abstract and undefined node types</u>
removeAbstractAndUndefinedNodes

Will remove all nodes that has an abstract or undefined node type.

<u>Remove orphan (parentless) nodes</u>
removeOrphanNodes

Will remove all child nodes that do not have a connection to the root node.

<u>Remove disallowed child nodes</u>
removeDisallowedChildNodes

Will remove all child nodes that are disallowed according to the node type's auto-create
configuration and constraints.

<u>Remove undefined node properties</u>
removeUndefinedProperties

<u>Remove broken object references</u>
removeBrokenEntityReferences

Detects and removes references from nodes to entities which don't exist anymore (for
example Image nodes referencing ImageVariant objects which are gone for some reason).

Will remove all undefined properties according to the node type configuration.

<u>Remove nodes with invalid dimensions</u>
removeNodesWithInvalidDimensions

Will check for and optionally remove nodes which have dimension values not matching
the current content dimension configuration.

<u>Remove nodes with invalid workspace</u>
removeNodesWithInvalidWorkspace

Will check for and optionally remove nodes which belong to a workspace which no longer
exists..

<u>Repair inconsistent node identifiers</u>
fixNodesWithInconsistentIdentifier

Will check for and optionally repair node identifiers which are out of sync with their
corresponding nodes in a live workspace.

<u>Missing child nodes</u>
createMissingChildNodes

For all nodes (or only those which match the --node-type filter specified with this
command) which currently don't have child nodes as configured by the node type's
configuration new child nodes will be created.

<u>Reorder child nodes</u>
reorderChildNodes

For all nodes (or only those which match the --node-type filter specified with this
command) which have configured child nodes, those child nodes are reordered according to the
position from the parents NodeType configuration.
<u>Missing default properties</u>
addMissingDefaultValues

For all nodes (or only those which match the --node-type filter specified with this
command) which currently don\t have a property that have a default value configuration
the default value for that property will be set.

<u>Repair nodes with missing shadow nodes</u>
repairShadowNodes

This will reconstruct missing shadow nodes in case something went wrong in creating
or publishing them. This must be used on a workspace other than live.

It searches for nodes which have a corresponding node in one of the base workspaces,
have different node paths, but don't have a corresponding shadow node with a "movedto"
value.

HELPTEXT;
        }
    }