function breakpoint_load

Load one breakpoint by its identifier.

@todo Remove this in a follow-up issue.

Parameters

int $id: The id of the breakpoint to load.

Return value

Drupal\breakpoint\Plugin\Core\Entity\Breakpoint The entity object, or FALSE if there is no entity with the given id.

See also

http://drupal.org/node/1798214

4 calls to breakpoint_load()
BreakpointCRUDTest::testBreakpointCRUD in drupal/core/modules/breakpoint/lib/Drupal/breakpoint/Tests/BreakpointCRUDTest.php
Test CRUD operations for breakpoints.
BreakpointGroup::loadAllBreakpoints in drupal/core/modules/breakpoint/lib/Drupal/breakpoint/Plugin/Core/Entity/BreakpointGroup.php
Loads all breakpoints, remove non-existing ones.
BreakpointTestBase::verifyBreakpoint in drupal/core/modules/breakpoint/lib/Drupal/breakpoint/Tests/BreakpointTestBase.php
Verify that a breakpoint is properly stored.
theme_picture in drupal/core/modules/picture/picture.module
Returns HTML for a picture.

File

drupal/core/modules/breakpoint/breakpoint.module, line 318
Manage breakpoints and breakpoint groups for responsive designs.

Code

function breakpoint_load($id) {
  return entity_load('breakpoint', $id);
}