You are here

protected function FrontendEnvironmentForm::getPluginForm in Build Hooks 3.x

Same name and namespace in other branches
  1. 8.2 src/Form/FrontendEnvironmentForm.php \Drupal\build_hooks\Form\FrontendEnvironmentForm::getPluginForm()

File

src/Form/FrontendEnvironmentForm.php, line 156

Class

FrontendEnvironmentForm
Class StaticFrontEnvironmentForm.

Namespace

Drupal\build_hooks\Form

Code

protected function getPluginForm(FrontendEnvironmentInterface $frontendEnvironment) {
  if ($frontendEnvironment instanceof PluginWithFormsInterface) {
    return $this->pluginFormFactory
      ->createInstance($frontendEnvironment, 'configure');
  }
  return $frontendEnvironment;
}