protected function resolveTagsFor(string $preferenceKey) : array
	{
		if (! is_null($this->products)) {
			return $this->pullTagsFromProducts();
		}

		$preferences = $this->resolveUserPreferences();

		$tags = PreferencesParser::parse($preferences)->all($this->keys);

		return isset($tags[$preferenceKey]) ? $tags[$preferenceKey] : [];
	}
protected function resolveTagsFor(string $preferenceKey) : array
	{
		if (! is_null($this->products)) {
			return $this->pullTagsFromProducts();
		}

		$preferences = $this->resolveUserPreferences();

		$tags = PreferencesParser::parse($preferences)->all($this->keys);

		return isset($tags[$preferenceKey]) ? $tags[$preferenceKey] : [];
	}
protected function resolveTagsFor ( string $ preferenceKey ) : array { if ( ! is_null ( $ this -> products ) ) { return $ this -> pullTagsFromProducts ( ) ; } $ preferences = $ this -> resolveUserPreferences ( ) ; $ tags = PreferencesParser :: parse ( $ preferences ) -> all ( $ this -> keys ) ; return isset ( $ tags [ $ preferenceKey ] ) ? $ tags [ $ preferenceKey ] : [ ] ; }
Resolves the tags list for the given key.

@param  string $preferenceKey

@return array
Resolves the tags list for the given key .