You are here

public function InstallablePluginBase::getObject in Markdown 8.2

@TODO: Refactor to use variadic parameters.

Overrides InstallablePluginInterface::getObject

2 calls to InstallablePluginBase::getObject()
BaseExtension::register in src/Plugin/Markdown/CommonMark/BaseExtension.php
Allows the extension to register itself with the CommonMark Environment.
CommonMark::converter in src/Plugin/Markdown/CommonMark/CommonMark.php
Retrieves a CommonMark converter instance.

File

src/Plugin/Markdown/InstallablePluginBase.php, line 231

Class

InstallablePluginBase
Base class for installable plugins.

Namespace

Drupal\markdown\Plugin\Markdown

Code

public function getObject($args = NULL, $_ = NULL) {
  if ($class = $this
    ->getObjectClass()) {
    $ref = new \ReflectionClass($class);
    return $ref
      ->newInstanceArgs(func_get_args());
  }
}