class NullRepositoryHandler in Workspace 8.2
Defines a fallback repository handler plugin.
Plugin annotation
@RepositoryHandler(
id = "null",
label = @Translation("Missing repository handler"),
description = @Translation("Provides a fallback for missing repository handlers. Do not use."),
)
Hierarchy
- class \Drupal\Component\Plugin\PluginBase implements DerivativeInspectionInterface, PluginInspectionInterface
- class \Drupal\Core\Plugin\PluginBase uses DependencySerializationTrait, MessengerTrait, StringTranslationTrait
- class \Drupal\workspace\Plugin\RepositoryHandler\NullRepositoryHandler implements RepositoryHandlerInterface
- class \Drupal\Core\Plugin\PluginBase uses DependencySerializationTrait, MessengerTrait, StringTranslationTrait
Expanded class hierarchy of NullRepositoryHandler
1 file declares its use of NullRepositoryHandler
File
- src/
Plugin/ RepositoryHandler/ NullRepositoryHandler.php, line 17
Namespace
Drupal\workspace\Plugin\RepositoryHandlerView source
class NullRepositoryHandler extends PluginBase implements RepositoryHandlerInterface {
/**
* {@inheritdoc}
*/
public function push() {
// Nothing to do here.
}
/**
* {@inheritdoc}
*/
public function pull() {
// Nothing to do here.
}
/**
* {@inheritdoc}
*/
public function checkConflictsOnTarget() {
return [];
}
/**
* {@inheritdoc}
*/
public function getDifferringRevisionIdsOnTarget() {
return [];
}
/**
* {@inheritdoc}
*/
public function getDifferringRevisionIdsOnSource() {
return [];
}
/**
* {@inheritdoc}
*/
public function getNumberOfChangesOnTarget() {
return 0;
}
/**
* {@inheritdoc}
*/
public function getNumberOfChangesOnSource() {
return 0;
}
/**
* {@inheritdoc}
*/
public function getLabel() {
return $this
->getPluginDefinition()['label'];
}
/**
* {@inheritdoc}
*/
public function getDescription() {
return $this
->getPluginDefinition()['description'];
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
DependencySerializationTrait:: |
protected | property | An array of entity type IDs keyed by the property name of their storages. | |
DependencySerializationTrait:: |
protected | property | An array of service IDs keyed by property name used for serialization. | |
DependencySerializationTrait:: |
public | function | 1 | |
DependencySerializationTrait:: |
public | function | 2 | |
MessengerTrait:: |
protected | property | The messenger. | 29 |
MessengerTrait:: |
public | function | Gets the messenger. | 29 |
MessengerTrait:: |
public | function | Sets the messenger. | |
NullRepositoryHandler:: |
public | function |
Checks if there are any conflicts between the source and the target. Overrides RepositoryHandlerInterface:: |
|
NullRepositoryHandler:: |
public | function |
Returns the repository handler plugin description. Overrides RepositoryHandlerInterface:: |
|
NullRepositoryHandler:: |
public | function |
Gets the revision identifiers for items which have changed on the source. Overrides RepositoryHandlerInterface:: |
|
NullRepositoryHandler:: |
public | function |
Gets the revision identifiers for items which have changed on the target. Overrides RepositoryHandlerInterface:: |
|
NullRepositoryHandler:: |
public | function |
Returns the label of the repository handler. Overrides RepositoryHandlerInterface:: |
|
NullRepositoryHandler:: |
public | function |
Gets the total number of items which have changed on the source. Overrides RepositoryHandlerInterface:: |
|
NullRepositoryHandler:: |
public | function |
Gets the total number of items which have changed on the target. Overrides RepositoryHandlerInterface:: |
|
NullRepositoryHandler:: |
public | function |
Pulls content from a target repository to a source repository. Overrides RepositoryHandlerInterface:: |
|
NullRepositoryHandler:: |
public | function |
Pushes content from a source repository to a target repository. Overrides RepositoryHandlerInterface:: |
|
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. | |
PluginBase:: |
public | function | Constructs a \Drupal\Component\Plugin\PluginBase object. | 92 |
RepositoryHandlerInterface:: |
constant | Indicate that an item deleted on the source has been changed on the target. | ||
RepositoryHandlerInterface:: |
constant | Indicate that an item has been updated both on the source and the target. | ||
RepositoryHandlerInterface:: |
constant | Indicate that an item updated on the source has been deleted on the target. | ||
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. |