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

CommentFileSizeAuthor
#3 2917488-3.patch4.43 KBswentel
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

bloomt created an issue. See original summary.

swentel’s picture

Category: Support request » Task

So 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)

swentel’s picture

Title: Class and type fields in layouts.yml » Remove 'type' from layouts.yml
Status: Active » Needs review
FileSize
4.43 KB

That property was from the layout_plugin, but is not anymore in layout_discovery, so we can simply remove it.

  • swentel committed 9db221d on 8.x-3.x
    Issue #2917488 by swentel: Remove 'type' from layouts.yml
    
swentel’s picture

Status: Needs review » Fixed

commited and pushed

swentel’s picture

Status: Fixed » Closed (fixed)