Skip to content

Commit

Permalink
Patch: Updated case to allow processing of Pimcore 3 elements with ne…
Browse files Browse the repository at this point in the history
…w namespace types. (#37)
  • Loading branch information
seeruk authored Jun 22, 2017
1 parent b8af5c4 commit b7fb30a
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ private function processPageElement(
) {
switch (ltrim(get_class($element), "\\")) {
case "Document_Tag_Select":
case "Pimcore\Model\Document\Tag\Select":
/** @var Tag\Select $element */
$this->selectElementProcessor->processElement(
$body,
Expand All @@ -117,6 +118,7 @@ private function processPageElement(
return;

case "Document_Tag_Multiselect":
case "Pimcore\Model\Document\Tag\Multiselect":
/** @var Tag\Multiselect $element */
$this->selectElementProcessor->processMultiSelectElement(
$body,
Expand All @@ -126,11 +128,11 @@ private function processPageElement(
return;

case "Document_Tag_Date":
case "Pimcore\Model\Document\Tag\Date":
/** @var Tag\Date $element */
$body[$elementKey] = $this->dateElementProcessor->processElement($element);
return;

case "Document_Tag":
default:
$body[$elementKey] = $this->elementProcessor->processElement($element);
return;
Expand Down

0 comments on commit b7fb30a

Please sign in to comment.