You are here

function rlayout_entity_info in Layout 8

Implements hook_entity_info().

File

./rlayout.module, line 72
Responsive layout builder tool for Panels.

Code

function rlayout_entity_info() {
  $types['rlayout'] = array(
    'label' => 'Responsive layout',
    'entity class' => 'Drupal\\rlayout\\RLayout',
    'controller class' => 'Drupal\\Core\\Config\\Entity\\ConfigStorageController',
    'form controller class' => array(
      'default' => 'Drupal\\rlayout\\RLayoutFormController',
    ),
    'list controller class' => 'Drupal\\Core\\Config\\Entity\\ConfigEntityListController',
    'list path' => 'admin/structure/layouts',
    'uri callback' => 'rlayout_uri',
    'config prefix' => 'rlayoutset',
    'entity keys' => array(
      'id' => 'id',
      'label' => 'label',
      'uuid' => 'uuid',
    ),
  );
  return $types;
}