You are here

public function WebformElementBase::getPluginCategory in Webform 8.5

Same name and namespace in other branches
  1. 6.x 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 525

Class

WebformElementBase
Provides a base class for a webform element.

Namespace

Drupal\webform\Plugin

Code

public function getPluginCategory() {
  return $this->pluginDefinition['category'] ?: $this
    ->t('Other elements');
}