Returns the plugin instance.
Return value
\Drupal\block\BlockPluginInterface
The plugin instance for this block.
File
- drupal/core/modules/block/lib/Drupal/block/BlockInterface.php, line 23
- Contains \Drupal\block\Plugin\Core\Entity\BlockInterface.
Class
- BlockInterface
- Provides an interface defining a block entity.
Namespace
Drupal\block
Code
public function getPlugin();