You are here

function gridbuilder_entity_info in Grid builder 8

Implements hook_entity_info().

File

./gridbuilder.module, line 77
Simple grid builder tool.

Code

function gridbuilder_entity_info() {
  $types['grid'] = array(
    'label' => 'Grid',
    'entity class' => 'Drupal\\gridbuilder\\Grid',
    'controller class' => 'Drupal\\Core\\Config\\Entity\\ConfigStorageController',
    'form controller class' => array(
      'default' => 'Drupal\\gridbuilder\\GridFormController',
    ),
    'list controller class' => 'Drupal\\Core\\Config\\Entity\\ConfigEntityListController',
    'list path' => 'admin/structure/grids',
    'uri callback' => 'gridbuilder_uri',
    'config prefix' => 'grid',
    'entity keys' => array(
      'id' => 'id',
      'label' => 'label',
      'uuid' => 'uuid',
    ),
  );
  return $types;
}