{"action":"opened","issue":{"url":"https://api.github.com/repos/magento/devdocs/issues/2796","repository_url":"https://api.github.com/repos/magento/devdocs","labels_url":"https://api.github.com/repos/magento/devdocs/issues/2796/labels{/name}","comments_url":"https://api.github.com/repos/magento/devdocs/issues/2796/comments","events_url":"https://api.github.com/repos/magento/devdocs/issues/2796/events","html_url":"https://github.com/magento/devdocs/issues/2796","id":353504817,"node_id":"MDU6SXNzdWUzNTM1MDQ4MTc=","number":2796,"title":"Theme inheritance - layout files order","user":{"login":"Januszpl","id":7412776,"node_id":"MDQ6VXNlcjc0MTI3NzY=","avatar_url":"https://avatars2.githubusercontent.com/u/7412776?v=4","gravatar_id":"","url":"https://api.github.com/users/Januszpl","html_url":"https://github.com/Januszpl","followers_url":"https://api.github.com/users/Januszpl/followers","following_url":"https://api.github.com/users/Januszpl/following{/other_user}","gists_url":"https://api.github.com/users/Januszpl/gists{/gist_id}","starred_url":"https://api.github.com/users/Januszpl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Januszpl/subscriptions","organizations_url":"https://api.github.com/users/Januszpl/orgs","repos_url":"https://api.github.com/users/Januszpl/repos","events_url":"https://api.github.com/users/Januszpl/events{/privacy}","received_events_url":"https://api.github.com/users/Januszpl/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-08-23T18:41:18Z","updated_at":"2018-08-23T18:41:18Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"# Topic clarification/correction request\r\nTheme inheritance - Extends layout - Layout files collecting order\r\n\r\n## Topic Link\r\nhttps://devdocs.magento.com/guides/v2.2/frontend-dev-guide/themes/theme-inherit.html#theme-inherit-layout\r\n\r\n## Description\r\n\r\nNot sure but I think the order is opposite unless the author meant here something else and collecting != merging. But following guide from SwiftOtter probably better would be use something explanation like - see possible solutions below. This order is also used in some other places in documentation.\r\n\r\n## Possible solutions\r\n\r\n> Layout XML instructions are first merged in the base area and then by the area that applies to the current request (frontend or adminhtml).\r\n> Here is the order in which layout XML is merged:\r\n> \r\n> - Module base files loaded\r\n> - Module area files loaded\r\n> - Sorted according to their module priority (array index of module’s position in app/etc/config.php)\r\n> - If their priorities are equal, they are sorted according to their alphabetical priority.\r\n> - Theme files (from furthest ancestor to current theme)\r\n> - Layout files loaded\r\n> - Override files replaced\r\n\r\nsolution copied from pdf study guide - source: @JosephMaxwell - https://swiftotter.com/technical/certifications/magento-2-frontend-developer-study-guide\r\n\r\n\r\n"}}
{"actor":{"display_login":"Januszpl"}}