You are here

public function MenuLinkContent::getBaseId in Multiversion 8

Same name and namespace in other branches
  1. 8.2 src/Plugin/Menu/MenuLinkContent.php \Drupal\multiversion\Plugin\Menu\MenuLinkContent::getBaseId()

Gets the base_plugin_id of the plugin instance.

Return value

string The base_plugin_id of the plugin instance.

Overrides PluginBase::getBaseId

File

src/Plugin/Menu/MenuLinkContent.php, line 12

Class

MenuLinkContent

Namespace

Drupal\multiversion\Plugin\Menu

Code

public function getBaseId() {
  $plugin_id = $this
    ->getPluginId();
  if (strpos($plugin_id, static::DERIVATIVE_SEPARATOR)) {
    list($plugin_id) = explode(static::DERIVATIVE_SEPARATOR, $plugin_id, 3);
  }
  return $plugin_id;
}