d8-load-entities.php
// Block.
use Drupal\block\Entity\Block;
$block = Block::load('block_id');
// Menu link.
use Drupal\menu_link_content\Entity\MenuLinkContent;
$menu_link = MenuLinkContent::load('menu_id');
// Block.
use Drupal\block\Entity\Block;
$block = Block::load('block_id');
// Menu link.
use Drupal\menu_link_content\Entity\MenuLinkContent;
$menu_link = MenuLinkContent::load('menu_id');