Refactor Drupal\Core\Template\AttributeArray to use ArrayObject and implement AttributeValueInterface

Created on 13 February 2017, almost 8 years ago
Updated 6 November 2024, about 2 months ago

Problem

As noted in the parent issue, extending from ArrayObject is usually faster and cleaner than implementing the ArrayAccess interface in userland code. For AttributeArray to do this it must implement the AttributeValueInterface since multiple inheritance isn't possible.

After this patch the AttributeArray class is cut in half by code lines count with no loss of functionality. As with its parent it picks up the \Serializable interface throught this extension.

πŸ“Œ Task
Status

Active

Version

11.0 πŸ”₯

Component

theme system

Created by

πŸ‡ΊπŸ‡ΈUnited States Aki Tendo

Live updates comments and jobs are added and updated live.
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.

Production build 0.71.5 2024