@@ 176-185 (lines=10) @@ | ||
173 | { |
|
174 | $themeBlacklist = []; |
|
175 | $categories = array(); |
|
176 | foreach ($actor->getCategories() as $category) { |
|
177 | /* @var \Culturefeed_Cdb_Data_Category $category */ |
|
178 | if ($category && !in_array($category->getName(), $themeBlacklist)) { |
|
179 | $categories[] = array( |
|
180 | 'label' => $category->getName(), |
|
181 | 'domain' => $category->getType(), |
|
182 | 'id' => $category->getId(), |
|
183 | ); |
|
184 | } |
|
185 | } |
|
186 | $jsonLD->terms = $categories; |
|
187 | } |
|
188 | } |
@@ 334-343 (lines=10) @@ | ||
331 | 'Meerdere filmgenres' |
|
332 | ]; |
|
333 | $categories = array(); |
|
334 | foreach ($event->getCategories() as $category) { |
|
335 | /* @var \Culturefeed_Cdb_Data_Category $category */ |
|
336 | if ($category && !in_array($category->getName(), $themeBlacklist)) { |
|
337 | $categories[] = array( |
|
338 | 'label' => $category->getName(), |
|
339 | 'domain' => $category->getType(), |
|
340 | 'id' => $category->getId(), |
|
341 | ); |
|
342 | } |
|
343 | } |
|
344 | $jsonLD->terms = $categories; |
|
345 | } |
|
346 |