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.
By Richard Buchanan on
Change record status:
Published (View all published change records)
Project:
Introduced in branch:
7.x-2.x, 7.x-3.x
Introduced in version:
7.x-2.2, 7.x-3.0-alpha2
Description:
PHP constants have been replaced by constants defined in the UIkit class definition.
This is the beginning of a move to a more object-oriented project to make back-porting from 8.x-x.x to 7.x-x.x series easier. No changes are needed in your sub-theme unless you are using the constants previously defined in the UIkit base theme.
Before
$uikit_library_version = UIKIT_LIBRARY_VERSION;
After
use Drupal\uikit\UIkit;
$uikit_library_version = UIkit::UIKIT_LIBRARY_VERSION;
Impacts:
Module developers
Themers