public function TabBase::getDerivativeExtension in Block Tabs 8
Returns the extension the derivative would have have after adding this tab.
Parameters
string $extension: The tab extension the derivative has before adding.
Return value
string The tab extension after adding.
Overrides TabInterface::getDerivativeExtension
File
- src/
TabBase.php, line 75
Class
- TabBase
- Provides a base class for tabs.
Namespace
Drupal\blocktabsCode
public function getDerivativeExtension($extension) {
// Most tabs will not change the extension. This base
// implementation represents this behavior. Override this method if your
// tab does change the extension.
return $extension;
}