public static function BreakpointInterface::isValidMediaQuery

Checks if a mediaQuery is valid.

Return value

bool Returns TRUE if the media query is valid.

Throws

\Drupal\breakpoint\InvalidBreakpointMediaQueryException

See also

http://www.w3.org/TR/css3-mediaqueries/

http://www.w3.org/Style/CSS/Test/MediaQueries/20120229/reports/implement...

https://github.com/adobe/webkit/blob/master/Source/WebCore/css/

1 method overrides BreakpointInterface::isValidMediaQuery()
Breakpoint::isValidMediaQuery in drupal/core/modules/breakpoint/lib/Drupal/breakpoint/Plugin/Core/Entity/Breakpoint.php
Checks if a mediaQuery is valid.

File

drupal/core/modules/breakpoint/lib/Drupal/breakpoint/BreakpointInterface.php, line 41
Contains \Drupal\breakpoint\Plugin\Core\Entity\BreakpointInterface.

Class

BreakpointInterface
Provides an interface defining a breakpoint entity.

Namespace

Drupal\breakpoint

Code

public static function isValidMediaQuery($media_query);