Returns the plugin instance.
Return value
\Drupal\block\BlockPluginInterface
The plugin instance for this block.
Overrides BlockInterface::getPlugin
File
- drupal/core/modules/block/lib/Drupal/block/Plugin/Core/Entity/Block.php, line 112
- Contains \Drupal\block\Plugin\Core\Entity\Block.
Class
- Block
- Defines a Block configuration entity class.
Namespace
Drupal\block\Plugin\Core\Entity
Code
public function getPlugin() {
return $this->pluginBag
->get($this->plugin);
}