protected function BlocktabsBlock::getEntity in Block Tabs 8
Loads the block content entity of the block.
Return value
\Drupal\block_content\BlockContentInterface|null The block content entity.
1 call to BlocktabsBlock::getEntity()
- BlocktabsBlock::build in src/
Plugin/ Block/ BlocktabsBlock.php - Builds and returns the renderable array for this block plugin.
File
- src/
Plugin/ Block/ BlocktabsBlock.php, line 131
Class
- BlocktabsBlock
- Provides a blocktabs block.
Namespace
Drupal\blocktabs\Plugin\BlockCode
protected function getEntity() {
$id = $this
->getDerivativeId();
if (!isset($this->blocktabs)) {
$this->blocktabs = $this->entityTypeManager
->getStorage('blocktabs')
->load($id);
}
return $this->blocktabs;
}