PluginCategoryDefinitionInterface.php in Plugin 8.2
Namespace
Drupal\plugin\PluginDefinitionFile
src/PluginDefinition/PluginCategoryDefinitionInterface.phpView source
<?php
namespace Drupal\plugin\PluginDefinition;
/**
* Defines a plugin definition that includes a category.
*
* @ingroup Plugin
*/
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();
}
Interfaces
Name | Description |
---|---|
PluginCategoryDefinitionInterface | Defines a plugin definition that includes a category. |