Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Can someone explain the purpose of the class and type in layouts.yml file do?
I cant seem to find any documentation on these.
Example :
class: '\Drupal\ds\Plugin\DsLayout'
type: partial
Comment | File | Size | Author |
---|---|---|---|
#3 | 2917488-3.patch | 4.43 KB | swentel |
Comments
Comment #2
swentel CreditAttribution: swentel at eps & kaas for Dropsolid commentedSo class can be seen in the layout annotation (Drupal\Core\Layout\Annotation\Layout.php).
But .. funny enough .. type is probably a leftover which simply doesn't exist anymore .. so we can probably just remove it :)
(probably from either in experimental phase, or maybe from panels, not sure)
Comment #3
swentel CreditAttribution: swentel at eps & kaas for Dropsolid commentedThat property was from the layout_plugin, but is not anymore in layout_discovery, so we can simply remove it.
Comment #5
swentel CreditAttribution: swentel at eps & kaas for Dropsolid commentedcommited and pushed
Comment #6
swentel CreditAttribution: swentel at eps & kaas for Dropsolid commented