interface PluginCategoryDefinitionInterface in Plugin 8.2
Defines a plugin definition that includes a category.
Hierarchy
- interface \Drupal\Component\Plugin\Definition\PluginDefinitionInterface
- interface \Drupal\plugin\PluginDefinition\PluginDefinitionInterface
- interface \Drupal\plugin\PluginDefinition\PluginCategoryDefinitionInterface
- interface \Drupal\plugin\PluginDefinition\PluginDefinitionInterface
Expanded class hierarchy of PluginCategoryDefinitionInterface
All classes that implement PluginCategoryDefinitionInterface
File
- src/
PluginDefinition/ PluginCategoryDefinitionInterface.php, line 10
Namespace
Drupal\plugin\PluginDefinitionView source
interface PluginCategoryDefinitionInterface extends PluginDefinitionInterface {
/**
* Sets the category.
*
*
* @param \Drupal\Core\StringTranslation\TranslatableString|string $category
* The category.
*
* @return $this
*/
public function setCategory($category);
/**
* Gets the category.
*
* @return \Drupal\Core\StringTranslation\TranslatableString|string|null
* The category.
*/
public function getCategory();
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
PluginCategoryDefinitionInterface:: |
public | function | Gets the category. | 1 |
PluginCategoryDefinitionInterface:: |
public | function | Sets the category. | 1 |
PluginDefinitionInterface:: |
public | function | Gets the class. | 1 |
PluginDefinitionInterface:: |
public | function | Gets the plugin ID. | 2 |
PluginDefinitionInterface:: |
public | function |
Gets the plugin provider. Overrides PluginDefinitionInterface:: |
2 |
PluginDefinitionInterface:: |
public | function | Gets the unique identifier of the plugin. | 1 |
PluginDefinitionInterface:: |
public | function | Merges another definition into this one, using the other for defaults. | |
PluginDefinitionInterface:: |
public | function | Merges another definition into this one, using the other for overrides. | |
PluginDefinitionInterface:: |
public | function | Sets the class. | 1 |
PluginDefinitionInterface:: |
public | function | Sets the plugin ID. | 2 |
PluginDefinitionInterface:: |
public | function | Sets the plugin provider. | 2 |