function BlockInterface::getPlugin

Same name in other branches
  1. 9 core/modules/block/src/BlockInterface.php \Drupal\block\BlockInterface::getPlugin()
  2. 10 core/modules/block/src/BlockInterface.php \Drupal\block\BlockInterface::getPlugin()
  3. 11.x core/modules/block/src/BlockInterface.php \Drupal\block\BlockInterface::getPlugin()

Returns the plugin instance.

Return value

\Drupal\Core\Block\BlockPluginInterface The plugin instance for this block.

1 method overrides BlockInterface::getPlugin()
Block::getPlugin in core/modules/block/src/Entity/Block.php
Returns the plugin instance.

File

core/modules/block/src/BlockInterface.php, line 36

Class

BlockInterface
Provides an interface defining a block entity.

Namespace

Drupal\block

Code

public function getPlugin();

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.