You are here

RepositoryHandlerManagerInterface.php in Workspace 8.2

Namespace

Drupal\workspace

File

src/RepositoryHandlerManagerInterface.php
View source
<?php

namespace Drupal\workspace;

use Drupal\Component\Plugin\CategorizingPluginManagerInterface;

/**
 * Provides the interface for a plugin manager of repository handlers.
 */
interface RepositoryHandlerManagerInterface extends CategorizingPluginManagerInterface {

  /**
   * Creates a repository handler instance from a given workspace entity.
   *
   * @param \Drupal\workspace\WorkspaceInterface $workspace
   *   A workspace entity.
   *
   * @return \Drupal\workspace\RepositoryHandlerInterface
   *   A repository handler plugin.
   */
  public function createFromWorkspace(WorkspaceInterface $workspace);

}

Interfaces

Namesort descending Description
RepositoryHandlerManagerInterface Provides the interface for a plugin manager of repository handlers.