summaryrefslogtreecommitdiffstats
path: root/core/modules/block/custom_block/custom_block.module
diff options
context:
space:
mode:
Diffstat (limited to 'core/modules/block/custom_block/custom_block.module')
-rw-r--r--core/modules/block/custom_block/custom_block.module28
1 files changed, 0 insertions, 28 deletions
diff --git a/core/modules/block/custom_block/custom_block.module b/core/modules/block/custom_block/custom_block.module
index 2c49754..00caf8e 100644
--- a/core/modules/block/custom_block/custom_block.module
+++ b/core/modules/block/custom_block/custom_block.module
@@ -5,8 +5,6 @@
* Allows the creation of custom blocks through the user interface.
*/
-use Drupal\custom_block\Entity\CustomBlockType;
-use Drupal\custom_block\Entity\CustomBlock;
use Symfony\Component\HttpFoundation\Request;
use Drupal\field\Entity\FieldConfig;
use Drupal\field\Entity\FieldInstanceConfig;
@@ -54,32 +52,6 @@ function custom_block_theme($existing, $type, $theme, $path) {
}
/**
- * Loads a custom block type.
- *
- * @param int $id
- * The ID of the custom block type to load.
- *
- * @return \Drupal\custom_block\Entity\CustomBlockType|null
- * A CustomBlockType object or NULL if the requested $id does not exist.
- */
-function custom_block_type_load($id) {
- return entity_load('custom_block_type', $id);
-}
-
-/**
- * Loads a custom block.
- *
- * @param int $id
- * The id of the custom block.
- *
- * @return \Drupal\custom_block\Entity\CustomBlock|null
- * A CustomBlock object or NULL if the requested $id does not exist.
- */
-function custom_block_load($id) {
- return entity_load('custom_block', $id);
-}
-
-/**
* Implements hook_entity_type_alter().
*/
function custom_block_entity_type_alter(array &$entity_types) {