Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
extendFields example
$fields
=
$this
->
defineFields
(
)
;
foreach
(
$this
->
defaultFields
(
)
as
$field
)
{
$fields
->
add
(
$field
)
;
}
foreach
(
$this
->extensions
as
$extension
)
{
$new
=
new
FieldCollection
(
)
;
$extension
->
extendFields
(
$new
)
;
foreach
(
$new
as
$field
)
{
$field
->
addFlags
(
new
Extension
(
)
)
;
if
(
$field
instanceof AssociationField
)
{
$fields
->
add
(
$field
)
;
continue
;
}
if
(
$field
->
is
(
Runtime::
class
)
)
{