Contao Utils Bundle

EntityFinderCommand extends Command
in package

Attributes
#[AsCommand]
$name: 'huh:utils:entity_finder'
$description: 'A command to find where an entity is included.'

Table of Contents

Properties

$connection  : Connection
$contaoFramework  : ContaoFramework
$entityFinderHelper  : EntityFinderHelper
$eventDispatcher  : EventDispatcherInterface
$finder  : Finder

Methods

__construct()  : mixed
configure()  : void
execute()  : int
createText()  : string
findEntity()  : string|null
findInserttags()  : void
loop()  : array<string|int, mixed>
output()  : void
runLegacyExtendEntityFinderEvent()  : ExtendEntityFinderEvent

Properties

Methods

__construct()

public __construct(ContaoFramework $contaoFramework, EventDispatcherInterface $eventDispatcher, Connection $connection, EntityFinderHelper $entityFinderHelper, Finder $finder) : mixed
Parameters
$contaoFramework : ContaoFramework
$eventDispatcher : EventDispatcherInterface
$connection : Connection
$entityFinderHelper : EntityFinderHelper
$finder : Finder

execute()

protected execute(InputInterface $input, OutputInterface $output) : int
Parameters
$input : InputInterface
$output : OutputInterface
Return values
int

createText()

private createText(string $table, mixed $id) : string
Parameters
$table : string
$id : mixed
Return values
string

findEntity()

private findEntity(string $table, mixed $id, array<string|int, mixed> &$parents[, bool $onlyText = false ]) : string|null
Parameters
$table : string
$id : mixed
$parents : array<string|int, mixed>
$onlyText : bool = false
Return values
string|null

loop()

private loop(string $table, mixed $id) : array<string|int, mixed>
Parameters
$table : string
$id : mixed
Return values
array<string|int, mixed>

output()

private output(SymfonyStyle $io, array<string|int, mixed> $tree[, string $prepend = '' ][, int $depth = 0 ]) : void
Parameters
$io : SymfonyStyle
$tree : array<string|int, mixed>
$prepend : string = ''
$depth : int = 0

runLegacyExtendEntityFinderEvent()

private runLegacyExtendEntityFinderEvent(string $table, mixed $id, array<string|int, mixed> $parents[, bool $onlyText = false ]) : ExtendEntityFinderEvent
Parameters
$table : string
$id : mixed
$parents : array<string|int, mixed>
$onlyText : bool = false
Return values
ExtendEntityFinderEvent

        
On this page

Search results