Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonkelly committed Mar 6, 2024
1 parent 16ccbfa commit 4f18729
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/Field.php
Original file line number Diff line number Diff line change
Expand Up @@ -648,9 +648,9 @@ private function _linkOptions(?ElementInterface $element = null): array
{
$linkOptions = [];

$sectionSources = $this->_sectionSources($element);
$sectionSources = $this->_entrySources($element);
$categorySources = $this->_categorySources($element);
$volumeSources = $this->_volumeSources();
$volumeSources = $this->_assetSources();

if (!empty($sectionSources)) {
$linkOptions[] = [
Expand Down Expand Up @@ -706,12 +706,12 @@ private function _linkOptions(?ElementInterface $element = null): array
}

/**
* Returns the available section sources.
* Returns the available entry sources.
*
* @param ElementInterface|null $element The element the field is associated with, if there is one
* @return array
*/
private function _sectionSources(?ElementInterface $element = null): array
private function _entrySources(?ElementInterface $element = null): array
{
$sources = [];
$sections = Craft::$app->getSections()->getAllSections();
Expand Down Expand Up @@ -780,11 +780,11 @@ private function _categorySources(?ElementInterface $element = null): array
}

/**
* Returns the available volume sources.
* Returns the available asset sources.
*
* @return string[]
*/
private function _volumeSources(): array
private function _assetSources(): array
{
if (!$this->availableVolumes) {
return [];
Expand Down

0 comments on commit 4f18729

Please sign in to comment.