Add an extension hook for registering consent requirements.
Review Request #9964 — Created May 23, 2018 and submitted
which registers a
ConsentRequirement, managing its registration as the
extension initializes or shuts down. This is a very simple hook that
just makes use of
BaseRegistryHook, feeding in the registry
dynamically on use (to avoid creating a registry unnecessarily or
Unit tests passed.
Used this in an extension successfully.