Incorrect library attachment in pcp.info.yml file

Created on 14 July 2025, 14 days ago

Problem/Motivation

The pcp.info.yml file contains the following code:

libraries:
  - pcp/pcp-block

However, according to documentation β†’ , the libraries property may be only used in themes info.yml files.

This might work or might have worked in older Drupal versions (I didn't check that), but in any case the library should be attached to the block render array.

Steps to reproduce

Check the pcp.info.yml file.

Proposed resolution

Move the library attachment code to the PCPBlock class.

Remaining tasks

Implement the fix and test it.

User interface changes

None.

API changes

None.

Data model changes

None.

πŸ› Bug report
Status

Active

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡¦Ukraine abramm Lutsk

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024