JQueryPrependListener
in package
FinalYes
Injecte jQuery et ses plugins dans les pipelines `insert_head` et `header_prive`.
La liste des scripts chargée peut être complétée par le pipeline jquery_plugins.
Table of Contents
Methods
- onHeaderPrive() : void
- onInsertHead() : void
- injectJQueryPrive() : string
- Injecte jQuery pour l'espace privé (pipeline header_prive).
- injectJQueryPublic() : string
- Injecte jQuery pour l'espace public (pipeline insert_head).
Methods
onHeaderPrive()
public
onHeaderPrive(HeaderPriveEvent $event) : void
Parameters
- $event : HeaderPriveEvent
Attributes
- #[AsPipelineListener]
- $position: 'prepend'
onInsertHead()
public
onInsertHead(InsertHeadEvent $event) : void
Parameters
- $event : InsertHeadEvent
Attributes
- #[AsPipelineListener]
- $position: 'prepend'
injectJQueryPrive()
Injecte jQuery pour l'espace privé (pipeline header_prive).
private
injectJQueryPrive(string $texte) : string
Les scripts sont insérés après le marqueur _MARQUEUR_POST_INIT si présent (après les scripts d'initialisation), sinon avant le premier script externe.
Parameters
- $texte : string
Return values
stringinjectJQueryPublic()
Injecte jQuery pour l'espace public (pipeline insert_head).
private
injectJQueryPublic(string $texte) : string
Parameters
- $texte : string