public function ConditionalFieldController::getMediaEditFormTab in Conditional Fields 8
Same name and namespace in other branches
- 4.x src/Controller/ConditionalFieldController.php \Drupal\conditional_fields\Controller\ConditionalFieldController::getMediaEditFormTab()
Provide arguments for ConditionalFieldFormTab.
Parameters
string $node_type: Node type.
Return value
array Form array.
File
- src/
Controller/ ConditionalFieldController.php, line 212
Class
- ConditionalFieldController
- Returns responses for conditional_fields module routes.
Namespace
Drupal\conditional_fields\ControllerCode
public function getMediaEditFormTab($media_type) {
return $this->formBuilder
->getForm(ConditionalFieldFormTab::class, 'media', $media_type);
}