Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
get_block_data example
if
(
is_array
(
$origin
)
)
{
_deprecated_argument
(
__FUNCTION__, '5.9.0'
)
;
}
$result
=
new
WP_Theme_JSON
(
)
;
$result
->
merge
(
static
::
get_core_data
(
)
)
;
if
(
'default' ===
$origin
)
{
$result
->
set_spacing_sizes
(
)
;
return
$result
;
}
$result
->
merge
(
static
::
get_block_data
(
)
)
;
if
(
'blocks' ===
$origin
)
{
return
$result
;
}
$result
->
merge
(
static
::
get_theme_data
(
)
)
;
if
(
'theme' ===
$origin
)
{
$result
->
set_spacing_sizes
(
)
;
return
$result
;
}
$result
->
merge
(
static
::
get_user_data
(
)
)
;