Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
We should use the libraries module methods for version comparison since we have access to them anyways.
See #2074499: Add support for views captions from field & flexslider 2.2.0 thumbnail captions for an example usage.