Skip to content

Instantly share code, notes, and snippets.

@sdboyer
Created March 31, 2011 22:57
Show Gist options
  • Save sdboyer/897431 to your computer and use it in GitHub Desktop.
Save sdboyer/897431 to your computer and use it in GitHub Desktop.
gibbering funlets working on plugin type controller interfaces
<?php
interface PluginControllerInterface {
/**
* Retrieve plugin metadata for the named plugin of this type.
*/
public function getPluginMetadata($name);
/**
* Retrieve plugin metadata for all plugins of this type.
*/
public function getAllPluginMetadata();
}
interface PluginControllerContextualInterface extends DrupalPluginControllerInterface {
public function setContext(DrupalContext $context);
}
interface PluginControllerSingleSlotInterface extends PluginControllerInterface {
public function getPluginInstance($name);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment