protected function isFilter($tokenId)
	{
		$filterName = rtrim($tokenId, '0123456789');

		if (in_array($filterName, $this->unfilteredTokens, true))
		{
			return true;
		}

		// Try to load the filter
		try
		{
			if ($this->configurator->attributeFilters->get('#' . $filterName))
			{
				return true;
			}
		}
		catch (Exception $e)
		{
			// Nothing to do here
		}

		return false;
	}
protected function isFilter($tokenId)
	{
		$filterName = rtrim($tokenId, '0123456789');

		if (in_array($filterName, $this->unfilteredTokens, true))
		{
			return true;
		}

		// Try to load the filter
		try
		{
			if ($this->configurator->attributeFilters->get('#' . $filterName))
			{
				return true;
			}
		}
		catch (Exception $e)
		{
			// Nothing to do here
		}

		return false;
	}
protected function isFilter ( $ tokenId ) { $ filterName = rtrim ( $ tokenId , '0123456789' ) ; if ( in_array ( $ filterName , $ this -> unfilteredTokens , true ) ) { return true ; } // Try to load the filter try { if ( $ this -> configurator -> attributeFilters -> get ( '#' . $ filterName ) ) { return true ; } } catch ( Exception $ e ) { // Nothing to do here } return false ; }
Test whether a token's name is the name of a filter

@param  string $tokenId Token ID, e.g. "TEXT1"
@return bool
Test whether a token s name is the name of a filter