You are here

public function PluginCategoryDefinitionTrait::setCategory in Plugin 8.2

Implements \Drupal\plugin\PluginDefinition\PluginCategoryDefinitionInterface::setCategory().

File

src/PluginDefinition/PluginCategoryDefinitionTrait.php, line 22

Class

PluginCategoryDefinitionTrait
Implements \Drupal\plugin\PluginDefinition\PluginCategoryDefinitionInterface.

Namespace

Drupal\plugin\PluginDefinition

Code

public function setCategory($category) {
  $this->category = $category;
  return $this;
}