function block_load

Loads a block instance.

This should only be used when entity_load() cannot be used directly.

Parameters

string $entity_id: The block ID.

Return value

\Drupal\block\Plugin\Core\Entity\Block The loaded block object.

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

File

drupal/core/modules/block/block.module, line 478
Controls the visual building blocks a page is constructed with.

Code

function block_load($entity_id) {
  return entity_load('block', $entity_id);
}