Problem/Motivation

Create libraries.yml file and attach to page

Proposed resolution

Comments

dishabhadra created an issue. See original summary.

dishabhadra’s picture

Assigned: dishabhadra » Unassigned
Status: Active » Needs review
StatusFileSize
new756 bytes

Kindly review my patch.

manojapare’s picture

Status: Needs review » Needs work

Found following issues:

  1. Typo in hook_page_attachments() document block.
  2. Don't include css unconditionally. Need to attach css for when module field formatter is been used.
dishabhadra’s picture

Assigned: Unassigned » dishabhadra
dishabhadra’s picture

Status: Needs work » Needs review
StatusFileSize
new810 bytes

@Manoj: Kindly review my patch. I have done the changes as per your comment.

manojapare’s picture

Status: Needs review » Needs work

If possible, it would be better attaching this css in field formatter or only when field formatter is been used.

dishabhadra’s picture

Status: Needs work » Needs review
StatusFileSize
new263 bytes

@Manoj : Kindly review my patch.

I only added the library in this patch.

manojapare’s picture

Status: Needs review » Reviewed & tested by the community

Moving to RTBC

  • dishabhadra committed a4e771d on 8.x-1.x
    Issue #2890452 by dishabhadra: Add libraries.yml file and attach to page
    
dishabhadra’s picture

Version: » 8.x-1.0
Status: Reviewed & tested by the community » Fixed

Release in 8.x-1.0.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.