You are here

public function ConditionalFieldController::getBlockEditFormTab in Conditional Fields 8

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

Provide arguments for ConditionalFieldFormTab.

Parameters

string $node_type: Node type.

Return value

array Form array.

File

src/Controller/ConditionalFieldController.php, line 226

Class

ConditionalFieldController
Returns responses for conditional_fields module routes.

Namespace

Drupal\conditional_fields\Controller

Code

public function getBlockEditFormTab($block_content_type) {
  return $this->formBuilder
    ->getForm(ConditionalFieldFormTab::class, 'block_content', $block_content_type);
}