interface CategorizingPluginManagerInterface in Zircon Profile 8.0
Same name and namespace in other branches
- 8 core/lib/Drupal/Component/Plugin/CategorizingPluginManagerInterface.php \Drupal\Component\Plugin\CategorizingPluginManagerInterface
Defines an interface for plugin managers that categorize plugin definitions.
Hierarchy
- interface \Drupal\Component\Plugin\Discovery\DiscoveryInterface; interface \Drupal\Component\Plugin\Factory\FactoryInterface; interface \Drupal\Component\Plugin\Mapper\MapperInterface
- interface \Drupal\Component\Plugin\PluginManagerInterface
- interface \Drupal\Component\Plugin\CategorizingPluginManagerInterface
- interface \Drupal\Component\Plugin\PluginManagerInterface
Expanded class hierarchy of CategorizingPluginManagerInterface
All classes that implement CategorizingPluginManagerInterface
5 files declare their use of CategorizingPluginManagerInterface
- ActionManager.php in core/
lib/ Drupal/ Core/ Action/ ActionManager.php - Contains \Drupal\Core\Action\ActionManager.
- BlockManagerInterface.php in core/
lib/ Drupal/ Core/ Block/ BlockManagerInterface.php - Contains \Drupal\Core\Block\BlockManagerInterface.
- CategorizingPluginManagerTraitTest.php in core/
tests/ Drupal/ Tests/ Core/ Plugin/ CategorizingPluginManagerTraitTest.php - Contains \Drupal\Tests\Core\Plugin\CategorizingPluginManagerTraitTest.
- ConditionManager.php in core/
lib/ Drupal/ Core/ Condition/ ConditionManager.php - Contains \Drupal\Core\Condition\ConditionManager.
- FieldTypePluginManagerInterface.php in core/
lib/ Drupal/ Core/ Field/ FieldTypePluginManagerInterface.php - Contains \Drupal\Core\Field\FieldTypePluginManagerInterface.
File
- core/
lib/ Drupal/ Component/ Plugin/ CategorizingPluginManagerInterface.php, line 13 - Contains \Drupal\Component\Plugin\CategorizingPluginManagerInterface.
Namespace
Drupal\Component\PluginView source
interface CategorizingPluginManagerInterface extends PluginManagerInterface {
/**
* Gets the names of all categories.
*
* @return string[]
* An array of translated categories, sorted alphabetically.
*/
public function getCategories();
/**
* Gets sorted plugin definitions.
*
* @param array[]|null $definitions
* (optional) The plugin definitions to sort. If omitted, all plugin
* definitions are used.
*
* @return array[]
* An array of plugin definitions, sorted by category and label.
*/
public function getSortedDefinitions(array $definitions = NULL);
/**
* Gets sorted plugin definitions grouped by category.
*
* In addition to grouping, both categories and its entries are sorted,
* whereas plugin definitions are sorted by label.
*
* @param array[]|null $definitions
* (optional) The plugin definitions to group. If omitted, all plugin
* definitions are used.
*
* @return array[]
* Keys are category names, and values are arrays of which the keys are
* plugin IDs and the values are plugin definitions.
*/
public function getGroupedDefinitions(array $definitions = NULL);
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
CategorizingPluginManagerInterface:: |
public | function | Gets the names of all categories. | |
CategorizingPluginManagerInterface:: |
public | function | Gets sorted plugin definitions grouped by category. | 1 |
CategorizingPluginManagerInterface:: |
public | function | Gets sorted plugin definitions. | 1 |
DiscoveryInterface:: |
public | function | Gets a specific plugin definition. | 3 |
DiscoveryInterface:: |
public | function | Gets the definition of all plugins for this type. | 2 |
DiscoveryInterface:: |
public | function | Indicates if a specific plugin definition exists. | 2 |
FactoryInterface:: |
public | function | Creates a pre-configured instance of a plugin. | 5 |
MapperInterface:: |
public | function | Gets a preconfigured instance of a plugin. | 4 |