You are here

function breakpoint_entity_info in Breakpoints 8

Implements hook_entity_info().

File

./breakpoint.module, line 307
Manage breakpoints and breakpoint groups for responsive designs.

Code

function breakpoint_entity_info() {

  // Breakpoint.
  $types['breakpoint'] = array(
    'label' => 'Breakpoint',
    'entity class' => 'Drupal\\breakpoint\\Breakpoint',
    'controller class' => 'Drupal\\Core\\Config\\Entity\\ConfigStorageController',
    'config prefix' => 'breakpoint.breakpoint',
    'entity keys' => array(
      'id' => 'id',
      'label' => 'label',
      'uuid' => 'uuid',
    ),
  );

  // Breakpoint group.
  $types['breakpoint_group'] = array(
    'label' => 'Breakpoint group',
    'entity class' => 'Drupal\\breakpoint\\BreakpointGroup',
    'controller class' => 'Drupal\\Core\\Config\\Entity\\ConfigStorageController',
    'config prefix' => 'breakpoint.breakpoint_group',
    'entity keys' => array(
      'id' => 'id',
      'label' => 'label',
      'uuid' => 'uuid',
    ),
  );
  return $types;
}