You are here

class FormatFactory in Bibliography & Citation 8

Same name and namespace in other branches
  1. 2.0.x src/Plugin/Factory/FormatFactory.php \Drupal\bibcite\Plugin\Factory\FormatFactory

Factory for bibcite format plugin.

Hierarchy

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\Factory
View 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

Namesort descending Modifiers Type Description Overrides
ContainerFactory::createInstance public function Creates a pre-configured instance of a plugin. Overrides DefaultFactory::createInstance
DefaultFactory::$discovery protected property The object that retrieves the definitions of the plugins that this factory instantiates.
DefaultFactory::$interface protected property Defines an interface each plugin should implement.
DefaultFactory::__construct public function Constructs a Drupal\Component\Plugin\Factory\DefaultFactory object.
FormatFactory::getPluginClass public static function Finds the class relevant for a given plugin. Overrides DefaultFactory::getPluginClass