From 4f1872944627e88bc1dc5f92886160bc8af1ea0f Mon Sep 17 00:00:00 2001 From: brandonkelly Date: Wed, 6 Mar 2024 12:10:28 -0800 Subject: [PATCH] Cleanup --- src/Field.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/Field.php b/src/Field.php index b5740bae..65e14660 100644 --- a/src/Field.php +++ b/src/Field.php @@ -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[] = [ @@ -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(); @@ -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 [];