public function validateSectionWhitelist(string $attribute) {

		$sections = $this->getSections();

		foreach ($this->whitelistedSections as $section) {
			if (!isset($sections[$section])) {
				$this->addError($attribute, Craft::t('section-field', 'Invalid section selected.'));
			}
		}
	}