Replace CookieComponent::type() with CookieComponent::encryption().
Update docblock.
Merge pull request #3192 from ADmad/3.0-cookie-component

Replace CookieComponent::type() with CookieComponent::encryption().