You are here

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

Expanded class hierarchy of NullRepositoryHandler

1 file declares its use of NullRepositoryHandler
WorkspaceListBuilder.php in src/WorkspaceListBuilder.php

File

src/Plugin/RepositoryHandler/NullRepositoryHandler.php, line 17

Namespace

Drupal\workspace\Plugin\RepositoryHandler
View 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

Namesort descending Modifiers Type Description Overrides
DependencySerializationTrait::$_entityStorages protected property An array of entity type IDs keyed by the property name of their storages.
DependencySerializationTrait::$_serviceIds protected property An array of service IDs keyed by property name used for serialization.
DependencySerializationTrait::__sleep public function 1
DependencySerializationTrait::__wakeup public function 2
MessengerTrait::$messenger protected property The messenger. 29
MessengerTrait::messenger public function Gets the messenger. 29
MessengerTrait::setMessenger public function Sets the messenger.
NullRepositoryHandler::checkConflictsOnTarget public function Checks if there are any conflicts between the source and the target. Overrides RepositoryHandlerInterface::checkConflictsOnTarget
NullRepositoryHandler::getDescription public function Returns the repository handler plugin description. Overrides RepositoryHandlerInterface::getDescription
NullRepositoryHandler::getDifferringRevisionIdsOnSource public function Gets the revision identifiers for items which have changed on the source. Overrides RepositoryHandlerInterface::getDifferringRevisionIdsOnSource
NullRepositoryHandler::getDifferringRevisionIdsOnTarget public function Gets the revision identifiers for items which have changed on the target. Overrides RepositoryHandlerInterface::getDifferringRevisionIdsOnTarget
NullRepositoryHandler::getLabel public function Returns the label of the repository handler. Overrides RepositoryHandlerInterface::getLabel
NullRepositoryHandler::getNumberOfChangesOnSource public function Gets the total number of items which have changed on the source. Overrides RepositoryHandlerInterface::getNumberOfChangesOnSource
NullRepositoryHandler::getNumberOfChangesOnTarget public function Gets the total number of items which have changed on the target. Overrides RepositoryHandlerInterface::getNumberOfChangesOnTarget
NullRepositoryHandler::pull public function Pulls content from a target repository to a source repository. Overrides RepositoryHandlerInterface::pull
NullRepositoryHandler::push public function Pushes content from a source repository to a target repository. Overrides RepositoryHandlerInterface::push
PluginBase::$configuration protected property Configuration information passed into the plugin. 1
PluginBase::$pluginDefinition protected property The plugin implementation definition. 1
PluginBase::$pluginId protected property The plugin_id.
PluginBase::DERIVATIVE_SEPARATOR constant A string which is used to separate base plugin IDs from the derivative ID.
PluginBase::getBaseId public function Gets the base_plugin_id of the plugin instance. Overrides DerivativeInspectionInterface::getBaseId
PluginBase::getDerivativeId public function Gets the derivative_id of the plugin instance. Overrides DerivativeInspectionInterface::getDerivativeId
PluginBase::getPluginDefinition public function Gets the definition of the plugin implementation. Overrides PluginInspectionInterface::getPluginDefinition 3
PluginBase::getPluginId public function Gets the plugin_id of the plugin instance. Overrides PluginInspectionInterface::getPluginId
PluginBase::isConfigurable public function Determines if the plugin is configurable.
PluginBase::__construct public function Constructs a \Drupal\Component\Plugin\PluginBase object. 92
RepositoryHandlerInterface::CONFLICT_DELETE_ON_CHANGE constant Indicate that an item deleted on the source has been changed on the target.
RepositoryHandlerInterface::CONFLICT_UPDATE_ON_CHANGE constant Indicate that an item has been updated both on the source and the target.
RepositoryHandlerInterface::CONFLICT_UPDATE_ON_DELETE constant Indicate that an item updated on the source has been deleted on the target.
StringTranslationTrait::$stringTranslation protected property The string translation service. 1
StringTranslationTrait::formatPlural protected function Formats a string containing a count of items.
StringTranslationTrait::getNumberOfPlurals protected function Returns the number of plurals supported by a given language.
StringTranslationTrait::getStringTranslation protected function Gets the string translation service.
StringTranslationTrait::setStringTranslation public function Sets the string translation service to use. 2
StringTranslationTrait::t protected function Translates a string to the current language or to a given language.