Declare dependency on drupal/toc_api in composer.json

Created on 4 March 2021, about 4 years ago
Updated 6 March 2025, 29 days ago

Problem/Motivation

The module depends on drupal/toc_api and should include it in the composer.json requirements.

dependencies: a list of other modules your module depends on. Dependencies on Drupal core or contrib modules should be namespaced in the format {project}:{module}, where {project} is the project name as it appears in the Drupal.org URL (e.g. drupal.org/project/views) and {module} is the module's machine name. Dependencies can also include version restrictions, for examplewebform:webform (>=8.x-5.x). Note that if your module has dependencies on other contributed modules or libraries, these should be declared in the module's composer.json file. If you have local custom modules that are dependent on each other you can use {module}:{module} (or {module}:{submodule} for sub-modules.)

- Drupal.org docs: Let Drupal know about your module with an .info.yml file β†’

Steps to reproduce

- Inspect composer.json
- Observe that `composer require drupal/toc_filter` triggers installation of drupal/toc_api already via module info.yml and packages.drupal.org Composer facade

Proposed resolution

- Patch for composer.json
- Ensure tests pass

Remaining tasks

-
- Review

User interface changes

- Visibility of requirement in composer.json

API changes

- None?

Data model changes

- None?

πŸ“Œ Task
Status

Needs work

Version

2.0

Component

Code

Created by

πŸ‡³πŸ‡ΏNew Zealand xurizaemon Ōtepoti, Aotearoa 🏝

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024