You are here

public function ConditionalFieldController::provideArguments in Conditional Fields 4.x

Same name and namespace in other branches
  1. 8 src/Controller/ConditionalFieldController.php \Drupal\conditional_fields\Controller\ConditionalFieldController::provideArguments()

Provide arguments for ConditionalFieldFormTab.

Parameters

string $node_type: Node type.

Return value

array Form array.

File

src/Controller/ConditionalFieldController.php, line 202

Class

ConditionalFieldController
Returns responses for conditional_fields module routes.

Namespace

Drupal\conditional_fields\Controller

Code

public function provideArguments($node_type) {
  return $this->formBuilder
    ->getForm(ConditionalFieldFormTab::class, 'node', $node_type);
}