public function WebformElementBase::getPluginCategory in Webform 6.x
Same name and namespace in other branches
- 8.5 src/Plugin/WebformElementBase.php \Drupal\webform\Plugin\WebformElementBase::getPluginCategory()
Gets the category of the plugin instance.
Return value
string The category of the plugin instance.
Overrides WebformElementInterface::getPluginCategory
File
- src/
Plugin/ WebformElementBase.php, line 453
Class
- WebformElementBase
- Provides a base class for a webform element.
Namespace
Drupal\webform\PluginCode
public function getPluginCategory() {
return $this->pluginDefinition['category'] ?: $this
->t('Other elements');
}