class ConfigEntityRevisionsModeration in Config Entity Revisions 8.2
Same name and namespace in other branches
- 8 src/Plugin/WorkflowType/ConfigEntityRevisionsModeration.php \Drupal\config_entity_revisions\Plugin\WorkflowType\ConfigEntityRevisionsModeration
- 1.x src/Plugin/WorkflowType/ConfigEntityRevisionsModeration.php \Drupal\config_entity_revisions\Plugin\WorkflowType\ConfigEntityRevisionsModeration
Attaches workflows to config entity revision content bundles.
Plugin annotation
@WorkflowType(
id = "config_entity_revisions_moderation",
label = @Translation("Config Entity Revision moderation"),
required_states = {
"draft",
"published",
},
forms = {
"configure" = "\Drupal\content_moderation\Form\ContentModerationConfigureForm",
"state" = "\Drupal\content_moderation\Form\ContentModerationStateForm"
},
)
Hierarchy
- class \Drupal\Component\Plugin\PluginBase implements DerivativeInspectionInterface, PluginInspectionInterface
- class \Drupal\workflows\Plugin\WorkflowTypeBase implements WorkflowTypeInterface uses PluginWithFormsTrait
- class \Drupal\content_moderation\Plugin\WorkflowType\ContentModeration implements ContentModerationInterface, ContainerFactoryPluginInterface uses StringTranslationTrait
- class \Drupal\config_entity_revisions\Plugin\WorkflowType\ConfigEntityRevisionsModeration
- class \Drupal\content_moderation\Plugin\WorkflowType\ContentModeration implements ContentModerationInterface, ContainerFactoryPluginInterface uses StringTranslationTrait
- class \Drupal\workflows\Plugin\WorkflowTypeBase implements WorkflowTypeInterface uses PluginWithFormsTrait
Expanded class hierarchy of ConfigEntityRevisionsModeration
File
- src/
Plugin/ WorkflowType/ ConfigEntityRevisionsModeration.php, line 23
Namespace
Drupal\config_entity_revisions\Plugin\WorkflowTypeView source
class ConfigEntityRevisionsModeration extends ContentModeration {
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
ContentModeration:: |
protected | property | The entity type bundle info service. | |
ContentModeration:: |
protected | property | The entity type manager. | |
ContentModeration:: |
protected | property | The moderation information service. | |
ContentModeration:: |
public | function |
Add an entity type ID / bundle ID to the workflow. Overrides ContentModerationInterface:: |
|
ContentModeration:: |
public | function |
Checks if the workflow applies to the supplied entity type and bundle. Overrides ContentModerationInterface:: |
|
ContentModeration:: |
public | function |
Calculates dependencies for the configured plugin. Overrides WorkflowTypeBase:: |
|
ContentModeration:: |
public static | function |
Creates an instance of the plugin. Overrides ContainerFactoryPluginInterface:: |
|
ContentModeration:: |
public | function |
Gets default configuration for this plugin. Overrides WorkflowTypeBase:: |
|
ContentModeration:: |
public | function |
Gets any bundles the workflow is applied to for the given entity type. Overrides ContentModerationInterface:: |
|
ContentModeration:: |
public | function |
Gets this plugin's configuration. Overrides WorkflowTypeBase:: |
|
ContentModeration:: |
public | function |
Gets the entity types the workflow is applied to. Overrides ContentModerationInterface:: |
|
ContentModeration:: |
public | function |
Gets the initial state for the workflow. Overrides WorkflowTypeBase:: |
|
ContentModeration:: |
public | function |
Gets a workflow state. Overrides WorkflowTypeBase:: |
|
ContentModeration:: |
public | function |
Informs the plugin that a dependency of the workflow will be deleted. Overrides WorkflowTypeBase:: |
|
ContentModeration:: |
public | function |
Removes an entity type ID / bundle ID from the workflow. Overrides ContentModerationInterface:: |
|
ContentModeration:: |
public | function |
Determines if the workflow is being has data associated with it. Overrides WorkflowTypeBase:: |
|
ContentModeration:: |
public | function |
Determines if the workflow state has data associated with it. Overrides WorkflowTypeBase:: |
|
ContentModeration:: |
public | function |
Constructs a ContentModeration object. Overrides WorkflowTypeBase:: |
|
PluginBase:: |
protected | property | Configuration information passed into the plugin. | 1 |
PluginBase:: |
protected | property | The plugin implementation definition. | 1 |
PluginBase:: |
protected | property | The plugin_id. | |
PluginBase:: |
constant | A string which is used to separate base plugin IDs from the derivative ID. | ||
PluginBase:: |
public | function |
Gets the base_plugin_id of the plugin instance. Overrides DerivativeInspectionInterface:: |
|
PluginBase:: |
public | function |
Gets the derivative_id of the plugin instance. Overrides DerivativeInspectionInterface:: |
|
PluginBase:: |
public | function |
Gets the definition of the plugin implementation. Overrides PluginInspectionInterface:: |
3 |
PluginBase:: |
public | function |
Gets the plugin_id of the plugin instance. Overrides PluginInspectionInterface:: |
|
PluginBase:: |
public | function | Determines if the plugin is configurable. | |
PluginWithFormsTrait:: |
public | function | ||
PluginWithFormsTrait:: |
public | function | ||
StringTranslationTrait:: |
protected | property | The string translation service. | 1 |
StringTranslationTrait:: |
protected | function | Formats a string containing a count of items. | |
StringTranslationTrait:: |
protected | function | Returns the number of plurals supported by a given language. | |
StringTranslationTrait:: |
protected | function | Gets the string translation service. | |
StringTranslationTrait:: |
public | function | Sets the string translation service to use. | 2 |
StringTranslationTrait:: |
protected | function | Translates a string to the current language or to a given language. | |
WorkflowTypeBase:: |
public | function |
Adds a state to the workflow. Overrides WorkflowTypeInterface:: |
1 |
WorkflowTypeBase:: |
public | function |
Adds a transition to the workflow. Overrides WorkflowTypeInterface:: |
|
WorkflowTypeBase:: |
public | function |
Deletes a state from the workflow. Overrides WorkflowTypeInterface:: |
1 |
WorkflowTypeBase:: |
public | function |
Deletes a transition. Overrides WorkflowTypeInterface:: |
|
WorkflowTypeBase:: |
protected | function | Gets the weight for a new state or transition. | |
WorkflowTypeBase:: |
public | function |
Gets the required states of workflow type. Overrides WorkflowTypeInterface:: |
1 |
WorkflowTypeBase:: |
public | function |
Gets state objects for the provided state IDs. Overrides WorkflowTypeInterface:: |
1 |
WorkflowTypeBase:: |
public | function |
Gets a transition object for the provided transition ID. Overrides WorkflowTypeInterface:: |
|
WorkflowTypeBase:: |
public | function |
Gets a transition from state to state. Overrides WorkflowTypeInterface:: |
|
WorkflowTypeBase:: |
protected | function | Gets the transition ID from state to state. | |
WorkflowTypeBase:: |
public | function |
Gets transition objects for the provided transition IDs. Overrides WorkflowTypeInterface:: |
|
WorkflowTypeBase:: |
public | function |
Gets the transition IDs for a state for the provided direction. Overrides WorkflowTypeInterface:: |
|
WorkflowTypeBase:: |
public | function |
Determines if the workflow has a state with the provided ID. Overrides WorkflowTypeInterface:: |
1 |
WorkflowTypeBase:: |
public | function |
Determines if a transition exists. Overrides WorkflowTypeInterface:: |
|
WorkflowTypeBase:: |
public | function |
Determines if a transition from state to state exists. Overrides WorkflowTypeInterface:: |
|
WorkflowTypeBase:: |
public | function |
Gets the label for the workflow type. Overrides WorkflowTypeInterface:: |
|
WorkflowTypeBase:: |
protected static | function | Sort states or transitions by weight, label, and key. | |
WorkflowTypeBase:: |
public | function |
Sets the configuration for this plugin instance. Overrides ConfigurableInterface:: |
|
WorkflowTypeBase:: |
public | function |
Sets a state's label. Overrides WorkflowTypeInterface:: |
1 |
WorkflowTypeBase:: |
public | function |
Sets a state's weight value. Overrides WorkflowTypeInterface:: |
1 |
WorkflowTypeBase:: |
public | function |
Sets a transition's from states. Overrides WorkflowTypeInterface:: |
|
WorkflowTypeBase:: |
public | function |
Sets a transition's label. Overrides WorkflowTypeInterface:: |
|
WorkflowTypeBase:: |
public | function |
Sets a transition's weight. Overrides WorkflowTypeInterface:: |
|
WorkflowTypeBase:: |
constant | A regex for matching a valid state/transition machine name. | ||
WorkflowTypeInterface:: |
constant | The key of the global workflow plugin form. |