Empty_Breakpoints->get( mixed $value, string $by = 'SLUG' )

Description

public

Function to retrieve a certain breakpoint based on its slug, index or width.

Availability

  • Backend
  • Empty Page Builder
  • Frontend

Since

2.0

Parameters

mixed $value
Value to get breakpoint by.
string $by = 'SLUG'
What to retrieve the breakpoint by.
Possible values are SLUG, INDEX or WIDTH

Return value

array
Breakpoint array containing the slug, title and an array break with value and unit values.