Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added entrify event #13391

Open
wants to merge 4 commits into
base: 5.x
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
adjust entrify event data
i-just committed Jul 10, 2023
commit feb3e94e60f91198a3e9e3291752b754285d91fd
27 changes: 18 additions & 9 deletions src/console/controllers/EntrifyController.php
Original file line number Diff line number Diff line change
@@ -299,10 +299,13 @@ public function actionCategories(string $categoryGroup): int
$event = new EntrifyEvent([
'elementType' => Category::class,
'elementGroup' => [
'from' => $categoryGroup->id,
'from' => [
'id' => $categoryGroup->id,
'uid' => $categoryGroup->uid,
],
'to' => [
'sectionId' => $section->id,
'typeId' => $entryType->id,
'section' => $section->uid,
'entryType' => $entryType->uid,
],
],
'fields' => [
@@ -461,10 +464,13 @@ public function actionTags(string $tagGroup): int
$event = new EntrifyEvent([
'elementType' => Tag::class,
'elementGroup' => [
'from' => $tagGroup->id,
'from' => [
'id' => $tagGroup->id,
'uid' => $tagGroup->uid,
],
'to' => [
'sectionId' => $section->id,
'typeId' => $entryType->id,
'section' => $section->uid,
'entryType' => $entryType->uid,
],
],
'fields' => [
@@ -596,10 +602,13 @@ public function actionGlobalSet(string $globalSet): int
$event = new EntrifyEvent([
'elementType' => GlobalSet::class,
'elementGroup' => [
'from' => $globalSet->id,
'from' => [
'id' => $globalSet->id,
'uid' => $globalSet->uid,
],
'to' => [
'sectionId' => $section->id,
'typeId' => $entryType->id,
'section' => $section->uid,
'entryType' => $entryType->uid,
],
],
'fields' => [],