class FormatFactory in Bibliography & Citation 8
Same name and namespace in other branches
- 2.0.x src/Plugin/Factory/FormatFactory.php \Drupal\bibcite\Plugin\Factory\FormatFactory
Factory for bibcite format plugin.
Hierarchy
- class \Drupal\Component\Plugin\Factory\DefaultFactory implements FactoryInterface
- class \Drupal\Core\Plugin\Factory\ContainerFactory
- class \Drupal\bibcite\Plugin\Factory\FormatFactory
- class \Drupal\Core\Plugin\Factory\ContainerFactory
Expanded class hierarchy of FormatFactory
1 file declares its use of FormatFactory
- BibciteFormatManager.php in src/
Plugin/ BibciteFormatManager.php
File
- src/
Plugin/ Factory/ FormatFactory.php, line 10
Namespace
Drupal\bibcite\Plugin\FactoryView source
class FormatFactory extends ContainerFactory {
/**
* {@inheritdoc}
*/
public static function getPluginClass($plugin_id, $plugin_definition = NULL, $required_interface = NULL) {
// Only one class for all plugins.
return '\\Drupal\\bibcite\\Plugin\\BibciteFormat';
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
ContainerFactory:: |
public | function |
Creates a pre-configured instance of a plugin. Overrides DefaultFactory:: |
|
DefaultFactory:: |
protected | property | The object that retrieves the definitions of the plugins that this factory instantiates. | |
DefaultFactory:: |
protected | property | Defines an interface each plugin should implement. | |
DefaultFactory:: |
public | function | Constructs a Drupal\Component\Plugin\Factory\DefaultFactory object. | |
FormatFactory:: |
public static | function |
Finds the class relevant for a given plugin. Overrides DefaultFactory:: |