PluginCategoryDefinitionTrait.php in Plugin 8.2
Namespace
Drupal\plugin\PluginDefinitionFile
src/PluginDefinition/PluginCategoryDefinitionTrait.phpView source
<?php
namespace Drupal\plugin\PluginDefinition;
/**
* Implements \Drupal\plugin\PluginDefinition\PluginCategoryDefinitionInterface.
*
* @ingroup Plugin
*/
trait PluginCategoryDefinitionTrait {
/**
* The plugin category.
*
* @var \Drupal\Core\StringTranslation\TranslatableString|string|null
*/
protected $category;
/**
* Implements \Drupal\plugin\PluginDefinition\PluginCategoryDefinitionInterface::setCategory().
*/
public function setCategory($category) {
$this->category = $category;
return $this;
}
/**
* Implements \Drupal\plugin\PluginDefinition\PluginCategoryDefinitionInterface::getCategory().
*/
public function getCategory() {
return $this->category;
}
}
Traits
Name | Description |
---|---|
PluginCategoryDefinitionTrait | Implements \Drupal\plugin\PluginDefinition\PluginCategoryDefinitionInterface. |