Still on Drupal 7? Security support for Drupal 7 ended on 5 January 2025. Please visit our Drupal 7 End of Life resources page to review all of your options.
I have a complex module that provides two content types. One type has over a dozen fields including a term reference (to the Tags vocab), and references to media entities of the 'image' and 'remote_video' types.
Since I'm not using Composer and don't plan and want to, I have to manually update modules, since (PITA) that option has been removed from latest versions of Drupal (using latest Drupal 11). Mostly there's a version I can download, unpack and then upload over the existing module. With Metatag that seems to be impossible or unadvised, reading this:
I'm getting in my helper with dependency injection:
__construct(): Argument #6 ($time) must be of type Drupal\Core\Datetime\TimeInterface, Drupal\Component\Datetime\Time given, called in /var/www/core/lib/Drupal/Component/DependencyInjection/Container.php on line 261
I'm registering the services.yml in correct order: