You are here

public function ViewTemplateForm::createBuilder in Views Templates 8

Function to create builder.

Parameters

mixed $plugin_id: The plugin it to create builder.

Return value

\Drupal\views_templates\Plugin\ViewsBuilderPluginInterface Returns a builder.

2 calls to ViewTemplateForm::createBuilder()
ViewTemplateForm::buildForm in src/ViewTemplateForm.php
Form constructor.
ViewTemplateForm::submitForm in src/ViewTemplateForm.php
Form submission handler.

File

src/ViewTemplateForm.php, line 116

Class

ViewTemplateForm
Form controller for the view template entity add forms.

Namespace

Drupal\views_templates

Code

public function createBuilder($plugin_id) {
  return $this->builderManager
    ->createInstance($plugin_id);
}