public static function getConstants($html = false)
	{
		$result = [];
		foreach ((new \ReflectionClass(get_class()))->getConstants() as $constant) {
			$key = static::$cssPrefix . ' ' . static::$cssPrefix . '-' . $constant;

			$result[$key] = ($html)
				? static::icon($constant) . '&nbsp;&nbsp;' . $constant
				: $constant;
		}

		return $result;
	}
public static function getConstants($html = false)
	{
		$result = [];
		foreach ((new \ReflectionClass(get_class()))->getConstants() as $constant) {
			$key = static::$cssPrefix . ' ' . static::$cssPrefix . '-' . $constant;

			$result[$key] = ($html)
				? static::icon($constant) . '&nbsp;&nbsp;' . $constant
				: $constant;
		}

		return $result;
	}
public static function getConstants ( $ html = false ) { $ result = [ ] ; foreach ( ( new \ ReflectionClass ( get_class ( ) ) ) -> getConstants ( ) as $ constant ) { $ key = static :: $ cssPrefix . ' ' . static :: $ cssPrefix . '-' . $ constant ; $ result [ $ key ] = ( $ html ) ? static :: icon ( $ constant ) . '&nbsp;&nbsp;' . $ constant : $ constant ; } return $ result ; }
Get all icon constants for dropdown list in example
@param bool $html whether to render icon as array value prefix
@return array
Get all icon constants for dropdown list in example