@@ 173-182 (lines=10) @@ | ||
170 | { |
|
171 | $themeBlacklist = []; |
|
172 | $categories = array(); |
|
173 | foreach ($actor->getCategories() as $category) { |
|
174 | /* @var \Culturefeed_Cdb_Data_Category $category */ |
|
175 | if ($category && !in_array($category->getName(), $themeBlacklist)) { |
|
176 | $categories[] = array( |
|
177 | 'label' => $category->getName(), |
|
178 | 'domain' => $category->getType(), |
|
179 | 'id' => $category->getId(), |
|
180 | ); |
|
181 | } |
|
182 | } |
|
183 | $jsonLD->terms = $categories; |
|
184 | } |
|
185 |
@@ 556-565 (lines=10) @@ | ||
553 | 'Meerdere filmgenres' |
|
554 | ]; |
|
555 | $categories = array(); |
|
556 | foreach ($event->getCategories() as $category) { |
|
557 | /* @var \Culturefeed_Cdb_Data_Category $category */ |
|
558 | if ($category && !in_array($category->getName(), $themeBlacklist)) { |
|
559 | $categories[] = array( |
|
560 | 'label' => $category->getName(), |
|
561 | 'domain' => $category->getType(), |
|
562 | 'id' => $category->getId(), |
|
563 | ); |
|
564 | } |
|
565 | } |
|
566 | $jsonLD->terms = $categories; |
|
567 | } |
|
568 |