Add a libraries folder with a README.txt in it to DRUPAL_ROOT

Created on 24 December 2009, about 15 years ago
Updated 30 January 2023, almost 2 years ago

The addition of a /libraries folder (like /modules and /themes) for the purpose of contrib. and project specific custom modules to place shareable javascript or css libraries that should not be included in a module or theme repos due to licensing restrictions and policies of Drupal; is necessary.

In light of 3rd party libraries and content on Drupal.org module and theme developers need a location to instruct Site Builders to download and install said library to.

README should contain:

  • why this is folder is here
  • notes/links on use of *.libraries.yml file in module/theme to access said library.
  • For modules: and installation process points with hook_install (*.install file) and use of hook_requirements($phase) to check the 'install' phase -- demo code
  • extended use with Libraries API 3.x -- hook_library_info()
Feature request
Status

Needs work

Version

10.1

Component
Base 

Last updated about 2 hours ago

Created by

🇺🇸United States dave reid Nebraska USA

Live updates comments and jobs are added and updated live.
  • Needs issue summary update

    Issue summaries save everyone time if they are kept up-to-date. See Update issue summary task instructions.

  • Contributed project blocker

    It denotes an issue that prevents porting of a contributed project to the stable version of Drupal due to missing APIs, regressions, and so on.

  • Needs change record

    A change record needs to be drafted before an issue is committed. Note: Change records used to be called change notifications.

Sign in to follow issues

Comments & Activities

Not all content is available!

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

  • The Needs Review Queue Bot tested this issue. It either no longer applies to Drupal core, or fails the Drupal core commit checks. Therefore, this issue status is now "Needs work".

    Apart from a re-roll or rebase, this issue may need more work to address feedback in the issue or MR comments. To progress an issue, incorporate this feedback as part of the process of updating the issue. This helps other contributors to know what is outstanding.

    Consult the Drupal Contributor Guide to find step-by-step guides for working with issues.

Production build 0.71.5 2024