Rebuild the path alias white list.
$source: An optional system path for which an alias is being inserted.
An array containing a white list of path aliases.
protected function pathAliasWhitelistRebuild($source = NULL) {
// When paths are inserted, only rebuild the whitelist if the system path
// has a top level component which is not already in the whitelist.
if (!empty($source)) {
if (isset($this->whitelist[strtok($source, '/')])) {
return;
}
}
$this->whitelist
->clear();
}