Skip to content

Commit

Permalink
Fazer a junção dos termos da config com os já definidos Ref.: #1
Browse files Browse the repository at this point in the history
  • Loading branch information
israelmelo committed Sep 5, 2024
1 parent 786108a commit 8dc3764
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions Plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,16 @@ public function __construct($config = [])
'mizoprosotol'
];

if(isset($config['termsBlock'])) {
$terms_block = $terms_block += $config['termsBlock'];
$config['termsBlock'] = $terms_block;
}

if(isset($config['terms'])) {
$default_terms = $default_terms += $config['terms'];
$config['terms'] = $default_terms;
}

$default_fields = [
'name',
'shortDescription',
Expand Down

0 comments on commit 8dc3764

Please sign in to comment.