Skip to content
This repository has been archived by the owner on Sep 13, 2024. It is now read-only.

Update Layout.php #17588

Open
wants to merge 1 commit into
base: developer
Choose a base branch
from

Conversation

imsharukh1994
Copy link

Added new functionality to the Layout class:

  • setActiveLayout: Allows setting the active layout dynamically and validates layout names.
  • getLayoutMetadata: Retrieves metadata for a specified layout (placeholder implementation for now).
  • getLayoutFilesByType: Fetches files of a specific type (e.g., .css, .js) from all layout directories.
  • validateLayout: Checks if a layout name is valid.

These enhancements improve the flexibility and functionality of layout management.

Description

Testing

Changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Final checklist

Added new functionality to the Layout class:
- `setActiveLayout`: Allows setting the active layout dynamically and validates layout names.
- `getLayoutMetadata`: Retrieves metadata for a specified layout (placeholder implementation for now).
- `getLayoutFilesByType`: Fetches files of a specific type (e.g., .css, .js) from all layout directories.
- `validateLayout`: Checks if a layout name is valid.

These enhancements improve the flexibility and functionality of layout management.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant