function custom_block_type_load

Loads a custom block type.

Parameters

int $id: The ID of the custom block type to load.

Return value

Drupal\custom_block\Plugin\Core\Entity\CustomBlockType|false A CustomBlockType object or FALSE if the requested $id does not exist.

1 string reference to 'custom_block_type_load'
CustomBlockTypeFormController::form in drupal/core/modules/block/custom_block/lib/Drupal/custom_block/CustomBlockTypeFormController.php
Overrides \Drupal\Core\Entity\EntityFormController::form().

File

drupal/core/modules/block/custom_block/custom_block.module, line 135
Allows the creaation of custom blocks through the user interface.

Code

function custom_block_type_load($id) {
  return entity_load('custom_block_type', $id);
}