class TildeExpansionHook implements ValidatorInterface, ConfigAwareInterface (View source)
The TildeExpansionHook is installed as a preValidate hook that runs before all commands. Argument or option values containing a leading tilde will be expanded to an absolute path.
This is a pre-validate hook because we do not want to do tilde expansion for commands that are redispatched to a remote site. That happens in the RedispatchHook, which happens in hook init.
Replaces same method in ConfigAwareTrait in order to provide a DrushConfig as return type. Helps with IDE completion.