{"id":311538,"date":"2021-11-12T13:01:47","date_gmt":"2021-11-12T13:01:47","guid":{"rendered":"https:\/\/webkul.com\/blog\/?p=311538"},"modified":"2021-11-12T13:13:43","modified_gmt":"2021-11-12T13:13:43","slug":"how-to-get-inheritance-data-from-the-repository-in-the-admin-end","status":"publish","type":"post","link":"https:\/\/webkul.com\/blog\/how-to-get-inheritance-data-from-the-repository-in-the-admin-end\/","title":{"rendered":"How to get inheritance data from the repository in the admin end"},"content":{"rendered":"\n<p>In this blog, you are going to learn \u201cHow to get inheritance data from the repository in the admin.\u201d<br>I hope you know the directory structure of&nbsp;<a href=\"https:\/\/webkul.com\/blog\/create-product-and-product-variant-in-shopware-6\/\">Shopware<\/a>&nbsp;6 plugin, if you don\u2019t know, see here-&nbsp;<a rel=\"noreferrer noopener\" href=\"https:\/\/webkul.com\/blog\/create-product-and-product-variant-in-shopware-6\/\" target=\"_blank\">https:\/\/docs.shopware.com\/en\/shopware-platform-dev-en\/internals\/directory-structure<\/a>.<\/p>\n\n\n\n<p>The purpose of this, a parent-child inheritance system was implemented in the DAL. This allows variants to inherit records, properties or even whole associations from the parent or also called container product. For example, if a variant has not been assigned any categories or images, those of the parent product are used.<\/p>\n\n\n\n<p>The directory to create listing should be the following, which represents the same structure like the core: <code>&lt;plugin root&gt;\/src\/Resources\/app\/administration\/src\/module\/test\/<\/code><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">index.js<\/h2>\n\n\n\n<p><\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\">const { Component, Mixin } = Shopware;\nconst { Criteria } = Shopware.Data;\nimport template from &#039;.\/test-list.html.twig&#039;;\n\nComponent.register(&#039;wk-test-list&#039;, {\n    template,\n\n    inject: &#091;\n        &#039;repositoryFactory&#039;,\n        &#039;filterFactory&#039;\n    ],\n\n    mixins: &#091;\n        Mixin.getByName(&#039;notification&#039;),\n        Mixin.getByName(&#039;salutation&#039;),\n        Mixin.getByName(&#039;listing&#039;)\n    ],\n\n    data() {\n        return {\n            isLoading: false,\n            showDeleteModal: false,\n            processSuccess: false,\n            total: 0,\n            tests: null,\n            page: 1,\n            limit: 10,\n            sortDirection: &#039;DESC&#039;,\n            showDeleteModal: null,\n            storeKey: &#039;grid.filter.wk_test&#039;,    \n            defaultFilters: &#091;\n                &#039;product-filter&#039;\n            ],       \n            activeFilterNumber: 0, \n            filterCriteria: &#091;],      \n        };\n    },\n\n    metaInfo() {\n        return {\n            title: this.$createTitle()\n        };\n    },\n\n    computed: {\n        testRepository() {\n           return this.repositoryFactory.create(&#039;wk_test&#039;);\n        },\n\n        testColumns() {\n            return this.getTestColumns();\n        },\n\n\n        listFilters() {\n            return this.filterFactory.create(&#039;wk_test&#039;, {\n                &#039;product-filter&#039;: {\n                    property: &#039;product&#039;,\n                    label: this.$tc(&quot;test.list.filters.productLabel&quot;),\n                    placeholder: this.$tc(&quot;test.list.filters.placeholderProduct&quot;),\n                    criteria: this.productCriteria,\n                    displayVariants: false,\n                }              \n            });\n        },\n\n         productCriteria() {\n            const criteria = new Criteria();\n            criteria.addFilter(Criteria.equals(&#039;parentId&#039;, null));\n            criteria.addFilter(Criteria.equals(&#039;childCount&#039;, 0));\n            return criteria;\n        },\n\n        defaultCriteria() {\n            const defaultCriteria = new Criteria(this.page, this.limit);\n\n            defaultCriteria.setTerm(this.term);\n            defaultCriteria.addSorting(Criteria.sort(&#039;createdAt&#039;, this.sortDirection));\n            \n            defaultCriteria\n                .addAssociation(&#039;product&#039;);\n\n            this.filterCriteria.forEach(filter =&gt; {\n                defaultCriteria.addFilter(filter);\n            });\n\n            return defaultCriteria;\n        }  \n    },\n\n    watch: {\n        defaultCriteria: {\n            handler() {\n                this.getList();\n            },\n            deep: true,\n        },\n    },\n\n    methods: {\n        async getList() {\n            this.isLoading = true;\n\n            const criteria = await Shopware.Service(&#039;filterService&#039;)\n                .mergeWithStoredFilters(this.storeKey, this.defaultCriteria);\n\n            this.activeFilterNumber = criteria.filters.length;\n\n            try {\n                const items = await this.testRepository.search(this.defaultCriteria, { ...Shopware.Context.api, inheritance: true });\n\n                this.total = items.total;\n                this.tests = items;\n                this.isLoading = false;\n                this.selection = {};\n            } catch {\n                this.isLoading = false;\n            }\n        },\n\n        getTestColumns() {\n            return &#091;{\n                property: &#039;product.name&#039;,\n                dataIndex: &#039;product.name&#039;,\n                label: this.$tc(&#039;test.list.columnProductName&#039;),\n                allowResize: true,\n                primary: true,\n            }]\n        },\n\n        updateCriteria(criteria) {\n            this.page = 1;\n            this.filterCriteria = criteria;\n        },\n\n        onPageChange({ page = 1, limit = 1 }) {\n            this.page = page;\n            this.limit = limit;\n            this.getList();\n        },\n\n        onDelete(id) {\n            this.showDeleteModal = id;\n        },\n\n        onCloseDeleteModal() {\n            this.showDeleteModal = false;\n        },\n\n        onConfirmDelete(id) {\n            this.showDeleteModal = false;\n\n            return this.testRepository.delete(id, Shopware.Context.api).then(() =&gt; {\n                this.getList();\n            });\n        },\n    }\n});<\/pre>\n\n\n\n<p>In index.js file, we use filter factory service to filter the data from the listing. List filter function have all the list of filter and default criteria is call by get list function when getting data from the repository according to them data has to come.<br><\/p>\n\n\n\n<p>To inheritance data from parent, in search function first argument is criteria and second argument is combination of context and inheritance.For example <code> const items = await this.testRepository.search(this.defaultCriteria, { ...Shopware.Context.api, inheritance: true });<\/code><br>If inheritance is set to true then it get data from parent otherwise not.<br><br><\/p>\n\n\n\n<p><\/p>\n\n\n\n<h6 class=\"wp-block-heading\">test-list.html.twig<\/h6>\n\n\n\n<pre class=\"EnlighterJSRAW\">{% block wk_test_list %}\n    &lt;sw-page&gt;\n        {% block wk_test_list_smart_bar_header %}\n            &lt;template #smart-bar-header&gt;\n                {% block wk_test_list_smart_bar_header_title %}\n                    &lt;h2&gt;\n                        {% block wk_test_list_smart_bar_header_title_text %}\n                            {{ $tc(&#039;sw-settings.index.title&#039;) }}\n                        {% endblock %}\n\n                        {% block wk_test_list_smart_bar_header_amount %}\n                            &lt;span v-if=&quot;!isLoading&quot;&gt;\n                                ({{ total }})\n                            &lt;\/span&gt; \n                        {% endblock %}\n                    &lt;\/h2&gt;\n                {% endblock %}\n            &lt;\/template&gt;\n        {% endblock %}\n\n        &lt;template #content&gt;\n            {% block wk_test_list_content %}\n                &lt;div&gt;\n                    {% block wk_test_list_grid %}\n                        &lt;sw-entity-listing\n                        v-if =&quot;test&quot;\n                        :items=&quot;test&quot;\n                        :columns=&quot;testColumns&quot;\n                        :repository=&quot;testRepository&quot;\n                        :showSelection=&quot;false&quot;\n                        :isLoading=&quot;isLoading&quot;&gt;\n\n                            {% block sw_product_list_grid_columns_name_preview %}\n                                &lt;template #preview-product.name=&quot;{ item }&quot;&gt;\n                                    &lt;sw-media-preview-v2 :source=&quot;item.product.cover ? item.product.cover.media : null&quot;&gt;&lt;\/sw-media-preview-v2&gt;\n                                &lt;\/template&gt;\n                            {% endblock %}\n\n                            {% block wk_test_list_grid_columns_name %}\n                                &lt;template #column-product.name=&quot;{ item, compact}&quot;&gt;\n                                    &lt;router-link :to=&quot;{ name: &#039;sw.product.detail&#039;, params: { id: item.productId } }&quot;&gt;\n                                        &lt;sw-product-variant-info :variations=&quot;item.product.variation&quot;&gt;\n                                            {{ item.product.translated.name || item.product.name }}\n                                        &lt;\/sw-product-variant-info&gt;\n                                    &lt;\/router-link&gt;\n                                &lt;\/template&gt;\n                            {% endblock %}\n\n                            &lt;template #pagination&gt;\n                                {% block wk_test_list_grid_pagination %}\n                                    &lt;sw-pagination :page=&quot;page&quot;\n                                                    :limit=&quot;limit&quot;\n                                                    :total=&quot;total&quot;\n                                                    :total-visible=&quot;7&quot;\n                                                    @page-change=&quot;onPageChange&quot;&gt;\n                                    &lt;\/sw-pagination&gt;\n                                {% endblock %}\n                            &lt;\/template&gt;\n                        &lt;\/sw-entity-listing&gt;\n                    {% endblock %}\n                &lt;\/div&gt;\n            {% endblock %}\n        &lt;\/template&gt;\n\n        {% block wk_test_list_list_sidebar %}\n            &lt;sw-sidebar slot=&quot;sidebar&quot;&gt;\n                {% block  wk_test_list_list_sidebar_refresh %}\n                    &lt;sw-sidebar-item\n                    icon=&quot;default-arrow-360-left&quot;\n                    :title=&quot;$tc(&#039;test.list.titleSidebarItemRefresh&#039;)&quot;\n                    @click=&quot;onRefresh&quot;&gt;\n                    &lt;\/sw-sidebar-item&gt;\n                {% endblock %}\n\n                {% block wk_test_list_list_sidebar_filter %}\n                    &lt;sw-sidebar-filter-panel\n                        entity=&quot;wk_test&quot;\n                        :storeKey=&quot;storeKey&quot;\n                        :filters=&quot;listFilters&quot;\n                        :defaults=&quot;defaultFilters&quot;\n                        :activeFilterNumber=&quot;activeFilterNumber&quot;\n                        @criteria-changed=&quot;updateCriteria&quot;&gt;\n                    &lt;\/sw-sidebar-filter-panel&gt;\n                {% endblock %}\n            &lt;\/sw-sidebar&gt;\n        {% endblock %} \n    &lt;\/sw-page&gt;\n{% endblock %}<\/pre>\n\n\n\n<p>In list.html.twig file is same as other listing, but for showing name of product in the listing use componnt <code>sw-product-variant-info<\/code> . Must add association <code>product<\/code> and <code>product.options.group<\/code>, in variation attribute set the variation or options of the product and print <code>item.product.translated.name or item.product.name<\/code>.<\/p>\n\n\n\n<p><code>sw-sidebar-filter-panel<\/code> component used to display the filter button in the listing and set some required attribute in them.<br><code>sw-sidebar-item<\/code> is used to display or do something according to need, in here we show refresh button to refresh the page.<\/p>\n\n\n\n<p> hope it will help you. Thanks for reading. Happy Coding \ud83d\ude42<br>Thank You.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this blog, you are going to learn \u201cHow to get inheritance data from the repository in the admin.\u201dI hope you know the directory structure of&nbsp;Shopware&nbsp;6 plugin, if you don\u2019t know, see here-&nbsp;https:\/\/docs.shopware.com\/en\/shopware-platform-dev-en\/internals\/directory-structure. The purpose of this, a parent-child inheritance system was implemented in the DAL. This allows variants to inherit records, properties or even <a href=\"https:\/\/webkul.com\/blog\/how-to-get-inheritance-data-from-the-repository-in-the-admin-end\/\">[&#8230;]<\/a><\/p>\n","protected":false},"author":284,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-311538","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to get inheritance data from the repository in the admin end - Webkul Blog<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/webkul.com\/blog\/how-to-get-inheritance-data-from-the-repository-in-the-admin-end\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to get inheritance data from the repository in the admin end - Webkul Blog\" \/>\n<meta property=\"og:description\" content=\"In this blog, you are going to learn \u201cHow to get inheritance data from the repository in the admin.\u201dI hope you know the directory structure of&nbsp;Shopware&nbsp;6 plugin, if you don\u2019t know, see here-&nbsp;https:\/\/docs.shopware.com\/en\/shopware-platform-dev-en\/internals\/directory-structure. The purpose of this, a parent-child inheritance system was implemented in the DAL. This allows variants to inherit records, properties or even [...]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/webkul.com\/blog\/how-to-get-inheritance-data-from-the-repository-in-the-admin-end\/\" \/>\n<meta property=\"og:site_name\" content=\"Webkul Blog\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/webkul\/\" \/>\n<meta property=\"article:published_time\" content=\"2021-11-12T13:01:47+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-11-12T13:13:43+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-og.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"630\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Diwakar Rana\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@webkul\" \/>\n<meta name=\"twitter:site\" content=\"@webkul\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Diwakar Rana\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/webkul.com\/blog\/how-to-get-inheritance-data-from-the-repository-in-the-admin-end\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/webkul.com\/blog\/how-to-get-inheritance-data-from-the-repository-in-the-admin-end\/\"},\"author\":{\"name\":\"Diwakar Rana\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/4b025fe4ecbc5c0378cd13bb70da654f\"},\"headline\":\"How to get inheritance data from the repository in the admin end\",\"datePublished\":\"2021-11-12T13:01:47+00:00\",\"dateModified\":\"2021-11-12T13:13:43+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/webkul.com\/blog\/how-to-get-inheritance-data-from-the-repository-in-the-admin-end\/\"},\"wordCount\":304,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/webkul.com\/blog\/#organization\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/webkul.com\/blog\/how-to-get-inheritance-data-from-the-repository-in-the-admin-end\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/webkul.com\/blog\/how-to-get-inheritance-data-from-the-repository-in-the-admin-end\/\",\"url\":\"https:\/\/webkul.com\/blog\/how-to-get-inheritance-data-from-the-repository-in-the-admin-end\/\",\"name\":\"How to get inheritance data from the repository in the admin end - Webkul Blog\",\"isPartOf\":{\"@id\":\"https:\/\/webkul.com\/blog\/#website\"},\"datePublished\":\"2021-11-12T13:01:47+00:00\",\"dateModified\":\"2021-11-12T13:13:43+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/webkul.com\/blog\/how-to-get-inheritance-data-from-the-repository-in-the-admin-end\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/webkul.com\/blog\/how-to-get-inheritance-data-from-the-repository-in-the-admin-end\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/webkul.com\/blog\/how-to-get-inheritance-data-from-the-repository-in-the-admin-end\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/webkul.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to get inheritance data from the repository in the admin end\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/webkul.com\/blog\/#website\",\"url\":\"https:\/\/webkul.com\/blog\/\",\"name\":\"Webkul Blog\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/webkul.com\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/webkul.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/webkul.com\/blog\/#organization\",\"name\":\"WebKul Software Private Limited\",\"url\":\"https:\/\/webkul.com\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png\",\"contentUrl\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png\",\"width\":380,\"height\":380,\"caption\":\"WebKul Software Private Limited\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/webkul\/\",\"https:\/\/x.com\/webkul\",\"https:\/\/www.instagram.com\/webkul\/\",\"https:\/\/www.linkedin.com\/company\/webkul\",\"https:\/\/www.youtube.com\/user\/webkul\/\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/4b025fe4ecbc5c0378cd13bb70da654f\",\"name\":\"Diwakar Rana\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/46482d0264c191ccd0337892016340a80ca4e4987a37f42514a0506aaee7e8dc?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/46482d0264c191ccd0337892016340a80ca4e4987a37f42514a0506aaee7e8dc?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g\",\"caption\":\"Diwakar Rana\"},\"url\":\"https:\/\/webkul.com\/blog\/author\/diwakar-rana829\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to get inheritance data from the repository in the admin end - Webkul Blog","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/webkul.com\/blog\/how-to-get-inheritance-data-from-the-repository-in-the-admin-end\/","og_locale":"en_US","og_type":"article","og_title":"How to get inheritance data from the repository in the admin end - Webkul Blog","og_description":"In this blog, you are going to learn \u201cHow to get inheritance data from the repository in the admin.\u201dI hope you know the directory structure of&nbsp;Shopware&nbsp;6 plugin, if you don\u2019t know, see here-&nbsp;https:\/\/docs.shopware.com\/en\/shopware-platform-dev-en\/internals\/directory-structure. The purpose of this, a parent-child inheritance system was implemented in the DAL. This allows variants to inherit records, properties or even [...]","og_url":"https:\/\/webkul.com\/blog\/how-to-get-inheritance-data-from-the-repository-in-the-admin-end\/","og_site_name":"Webkul Blog","article_publisher":"https:\/\/www.facebook.com\/webkul\/","article_published_time":"2021-11-12T13:01:47+00:00","article_modified_time":"2021-11-12T13:13:43+00:00","og_image":[{"width":1200,"height":630,"url":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-og.png","type":"image\/png"}],"author":"Diwakar Rana","twitter_card":"summary_large_image","twitter_creator":"@webkul","twitter_site":"@webkul","twitter_misc":{"Written by":"Diwakar Rana","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/webkul.com\/blog\/how-to-get-inheritance-data-from-the-repository-in-the-admin-end\/#article","isPartOf":{"@id":"https:\/\/webkul.com\/blog\/how-to-get-inheritance-data-from-the-repository-in-the-admin-end\/"},"author":{"name":"Diwakar Rana","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/4b025fe4ecbc5c0378cd13bb70da654f"},"headline":"How to get inheritance data from the repository in the admin end","datePublished":"2021-11-12T13:01:47+00:00","dateModified":"2021-11-12T13:13:43+00:00","mainEntityOfPage":{"@id":"https:\/\/webkul.com\/blog\/how-to-get-inheritance-data-from-the-repository-in-the-admin-end\/"},"wordCount":304,"commentCount":0,"publisher":{"@id":"https:\/\/webkul.com\/blog\/#organization"},"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/webkul.com\/blog\/how-to-get-inheritance-data-from-the-repository-in-the-admin-end\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/webkul.com\/blog\/how-to-get-inheritance-data-from-the-repository-in-the-admin-end\/","url":"https:\/\/webkul.com\/blog\/how-to-get-inheritance-data-from-the-repository-in-the-admin-end\/","name":"How to get inheritance data from the repository in the admin end - Webkul Blog","isPartOf":{"@id":"https:\/\/webkul.com\/blog\/#website"},"datePublished":"2021-11-12T13:01:47+00:00","dateModified":"2021-11-12T13:13:43+00:00","breadcrumb":{"@id":"https:\/\/webkul.com\/blog\/how-to-get-inheritance-data-from-the-repository-in-the-admin-end\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/webkul.com\/blog\/how-to-get-inheritance-data-from-the-repository-in-the-admin-end\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/webkul.com\/blog\/how-to-get-inheritance-data-from-the-repository-in-the-admin-end\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/webkul.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How to get inheritance data from the repository in the admin end"}]},{"@type":"WebSite","@id":"https:\/\/webkul.com\/blog\/#website","url":"https:\/\/webkul.com\/blog\/","name":"Webkul Blog","description":"","publisher":{"@id":"https:\/\/webkul.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/webkul.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/webkul.com\/blog\/#organization","name":"WebKul Software Private Limited","url":"https:\/\/webkul.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png","contentUrl":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png","width":380,"height":380,"caption":"WebKul Software Private Limited"},"image":{"@id":"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/webkul\/","https:\/\/x.com\/webkul","https:\/\/www.instagram.com\/webkul\/","https:\/\/www.linkedin.com\/company\/webkul","https:\/\/www.youtube.com\/user\/webkul\/"]},{"@type":"Person","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/4b025fe4ecbc5c0378cd13bb70da654f","name":"Diwakar Rana","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/46482d0264c191ccd0337892016340a80ca4e4987a37f42514a0506aaee7e8dc?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/46482d0264c191ccd0337892016340a80ca4e4987a37f42514a0506aaee7e8dc?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g","caption":"Diwakar Rana"},"url":"https:\/\/webkul.com\/blog\/author\/diwakar-rana829\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/311538","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/users\/284"}],"replies":[{"embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/comments?post=311538"}],"version-history":[{"count":4,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/311538\/revisions"}],"predecessor-version":[{"id":312457,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/311538\/revisions\/312457"}],"wp:attachment":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/media?parent=311538"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/categories?post=311538"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/tags?post=311538"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}