You are here

protected function TocBlockBase::getCurrentTocId in TOC API 8

Get the current requests TOC object instance ID.

Most TOC modules should use just the the modules name space which can all be used as this block's plugin ID.

Return value

string The current TOC block's plugin ID.

2 calls to TocBlockBase::getCurrentTocId()
TocBlockBase::blockAccess in src/Plugin/Block/TocBlockBase.php
Indicates whether the block should be shown.
TocBlockBase::getCurrentToc in src/Plugin/Block/TocBlockBase.php
Get the current request TOC object instance.

File

src/Plugin/Block/TocBlockBase.php, line 79

Class

TocBlockBase
Provides a base TOC block which displays the current TOC module's TOC in a block.

Namespace

Drupal\toc_api\Plugin\Block

Code

protected function getCurrentTocId() {
  return $this->pluginId;
}