You are here

public function BlockFieldItemInterface::getBlock in Block field 8

Get block instance.

Return value

null|\Drupal\Core\Block\BlockPluginInterface Return the block instance or NULL if the block does not exist.

1 method overrides BlockFieldItemInterface::getBlock()
BlockFieldItem::getBlock in src/Plugin/Field/FieldType/BlockFieldItem.php
Get block instance.

File

src/BlockFieldItemInterface.php, line 18

Class

BlockFieldItemInterface
Defines an interface for the block field item.

Namespace

Drupal\block_field

Code

public function getBlock();