protected function registerDeviseTag(DeviseTag $tag, $html) { $this->registrations[] = $tag; $newTag = $this->getNewDeviseTagString($tag); return str_replace($tag, $newTag, $html); }