Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
engram-design committed May 11, 2019
1 parent 772e297 commit f683702
Showing 1 changed file with 0 additions and 67 deletions.
67 changes: 0 additions & 67 deletions src/services/Service.php
Original file line number Diff line number Diff line change
Expand Up @@ -119,31 +119,6 @@ public function getUnusedFieldIds(): array
// Get only the unused fields
return array_diff($allFieldIds, $usedFieldIds);
}

// public function processMatrix(FieldInterface $field)
// {
// $blockTypes = $field->blockTypes;

// // Strip out all the IDs from the origin field
// foreach ($blockTypes as $blockType) {
// $blockType->id = null;
// $blockType->fieldLayoutId = null;

// foreach ($blockType->fields as $blockField) {
// $blockField->id = null;

// // Case for nested Super Table
// if (get_class($blockField) == 'verbb\supertable\fields\SuperTableField') {
// // Ensure FieldTypes have a chance to prepare their settings properly
// // $blockField->settings = $blockField->fieldType->prepSettings($blockField->settings);

// $blockField->blockTypes = $this->processSuperTable($blockField);
// }
// }
// }

// return $blockTypes;
// }

public function processCloneMatrix(FieldInterface $originField)
{
Expand Down Expand Up @@ -176,23 +151,6 @@ public function processCloneMatrix(FieldInterface $originField)
return $blockTypes;
}

// public function processNeo(FieldInterface $field)
// {
// $blockTypes = $field->blockTypes;

// // Strip out all the IDs from the origin field
// foreach ($blockTypes as $blockType) {
// $blockType->id = null;
// $blockType->fieldLayoutId = null;

// foreach ($blockType->fields as $blockField) {
// $blockField->id = null;
// }
// }

// return $blockTypes;
// }

public function processCloneNeo(FieldInterface $originField)
{
$blockTypes = [];
Expand Down Expand Up @@ -221,31 +179,6 @@ public function processCloneNeo(FieldInterface $originField)
return $blockTypes;
}

// public function processSuperTable(FieldInterface $field)
// {
// $blockTypes = $field->blockTypes;

// // Strip out all the IDs from the origin field
// foreach ($blockTypes as $blockType) {
// $blockType->id = null;
// $blockType->fieldLayoutId = null;

// foreach ($blockType->fields as $blockField) {
// $blockField->id = null;

// // Case for nested Matrix
// if (get_class($blockField) == 'craft\fields\Matrix') {
// // Ensure FieldTypes have a chance to prepare their settings properly
// // $blockField->settings = $blockField->fieldType->prepSettings($blockField->settings);

// $blockField->blockTypes = $this->processMatrix($blockField);
// }
// }
// }

// return $blockTypes;
// }

public function processCloneSuperTable(FieldInterface $originField)
{
$blockTypes = [];
Expand Down

0 comments on commit f683702

Please sign in to comment.