Skip to content

Commit

Permalink
Unused methods
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonkelly committed Nov 4, 2024
1 parent 642133d commit 0fb6a92
Showing 1 changed file with 0 additions and 33 deletions.
33 changes: 0 additions & 33 deletions src/Command.php
Original file line number Diff line number Diff line change
Expand Up @@ -950,39 +950,6 @@ function() use ($uid, $name, $handle, $populate, &$tagGroup) {
return $tagGroup;
}

private function fieldLayout(array $elements = []): FieldLayout
{
$fieldLayout = new FieldLayout();
$fieldLayout->setTabs([
new FieldLayoutTab([
'layout' => $fieldLayout,
'name' => 'Content',
'elements' => $elements,
]),
]);
return $fieldLayout;
}

private function assignFieldToEntryType(FieldInterface $field, EntryType $entryType): void
{
$fieldLayout = $entryType->getFieldLayout();
if (!$fieldLayout->getFieldById($field->id)) {
$tab = $fieldLayout->getTabs()[0] ?? null;
if (!$tab) {
$tab = new FieldLayoutTab([
'name' => 'Content',
'layout' => $fieldLayout,
]);
$fieldLayout->setTabs([$tab]);
}

$elements = $tab->getElements();
$elements[] = new CustomField($field);
$tab->setElements($elements);
Craft::$app->entries->saveEntryType($entryType);
}
}

public function import(string $resource, int|array $data, array $queryParams = []): int
{
$importer = $this->importers[$resource] ?? null;
Expand Down

0 comments on commit 0fb6a92

Please sign in to comment.