You are here

public function GridStack::getLastBreakpoint in GridStack 8.2

Returns options.breakpoints.[lg|xl].[column|width|grids|nested].

Parameters

string $type: The name of specific property: column, width, grids, or nested.

Return value

mixed|array Available item by the given $type parameter, else empty.

Overrides GridStackInterface::getLastBreakpoint

3 calls to GridStack::getLastBreakpoint()
GridStack::getGridsByDelta in src/Entity/GridStack.php
GridStack::getLastColumn in src/Entity/GridStack.php
Returns the last breakpoint column, or fallback to global setting.
GridStack::prepareRegions in src/Entity/GridStack.php
Returns regions based on available grids.

File

src/Entity/GridStack.php, line 179

Class

GridStack
Defines the GridStack configuration entity.

Namespace

Drupal\gridstack\Entity

Code

public function getLastBreakpoint($type = 'grids') {
  return $this
    ->getBreakpointItems($this
    ->getLastBreakpointKey(), $type);
}