1 | <?php |
||
13 | class CategoryProcessor extends DrupalItemStep implements ItemProcessorInterface |
||
14 | { |
||
15 | /** |
||
16 | * @var CategoryNormalizer |
||
17 | */ |
||
18 | protected $categoryNormalizer; |
||
19 | |||
20 | /** |
||
21 | * @var array |
||
22 | */ |
||
23 | protected $globalContext = array(); |
||
24 | |||
25 | /** |
||
26 | * @param CategoryNormalizer $categoryNormalizer The entity manager |
||
27 | */ |
||
28 | public function __construct(CategoryNormalizer $categoryNormalizer) |
||
32 | |||
33 | /** |
||
34 | * @param mixed $categories |
||
35 | * @return array|mixed |
||
36 | * @throws InvalidItemException |
||
37 | */ |
||
38 | public function process($categories) |
||
50 | |||
51 | /** |
||
52 | * @param Category $category |
||
53 | * @param array $context |
||
54 | * @return array|\Symfony\Component\Serializer\Normalizer\scalar |
||
55 | * @throws InvalidItemException |
||
56 | */ |
||
57 | protected function normalizeCategory(Category $category, array $context) |
||
70 | |||
71 | public function getConfigurationFields() |
||
75 | |||
76 | /** |
||
77 | * @param StepExecution $stepExecution |
||
78 | */ |
||
79 | public function setStepExecution(StepExecution $stepExecution) |
||
83 | } |
||
84 |