Guides

GlobMenuEntryNodeTransformer extends AbstractMenuEntryNodeTransformer
in package
uses MenuEntryManagement, SubSectionHierarchyHandler

FinalYes

Table of Contents

Constants

DEFAULT_MAX_LEVELS  = 10

Properties

$logger  : LoggerInterface

Methods

__construct()  : mixed
enterNode()  : T
getPriority()  : int
The higher the priority the earlier the NodeTransformer is executed.
leaveNode()  : T|null
supports()  : bool
handleMenuEntry()  : array<int, MenuEntryNode>
addSubSections()  : void
addSubSectionsToMenuEntries()  : void
attachDocumentEntriesToParents()  : void
isAbsoluteFile()  : bool
isCurrent()  : bool
isGlob()  : bool
isInRootline()  : bool
matches()  : bool

Constants

Properties

Methods

getPriority()

The higher the priority the earlier the NodeTransformer is executed.

public getPriority() : int
Return values
int

isAbsoluteFile()

private static isAbsoluteFile(string $expectedFile) : bool
Parameters
$expectedFile : string
Return values
bool

isGlob()

private static isGlob(string $documentEntryFile, string $currentPath, string $file, string $prefix, array<string|int, string> $globExclude) : bool
Parameters
$documentEntryFile : string
$currentPath : string
$file : string
$prefix : string
$globExclude : array<string|int, string>
Return values
bool

matches()

private static matches(string $actualFile, GlobMenuEntryNode $parsedMenuEntryNode, string $currentFile, array<string|int, string> $globExclude) : bool
Parameters
$actualFile : string
$parsedMenuEntryNode : GlobMenuEntryNode
$currentFile : string
$globExclude : array<string|int, string>
Return values
bool

        
On this page

Search results