Skip to content

Commit

Permalink
Fix #278 - [Legacy] Create RecordViewDefinitionHandler
Browse files Browse the repository at this point in the history
  • Loading branch information
mpuyosa91 committed Nov 15, 2023
1 parent 117dd81 commit b321602
Showing 1 changed file with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,7 @@ public function fetch(
$this->addBottomWidgetConfig($module, $detailViewDefs, $metadata);
$this->addPanelDefinitions($detailViewDefs, $editViewDefs, $vardefs, $metadata);
$this->addActionConfig($module, $detailViewDefs, $metadata);
$this->addLogicConfig($detailViewDefs, $metadata);
$this->addSummaryTemplates($detailViewDefs, $metadata);

return $metadata;
Expand Down Expand Up @@ -592,6 +593,16 @@ protected function addActionConfig(string $module, array $detailViewDefs, array
$metadata['actions'] = array_values($actions);
}

/**
* @param array $detailViewDefs
* @param array $metadata
* @return void
*/
protected function addLogicConfig(array $detailViewDefs, array &$metadata): void
{
$metadata['logic'] = $detailViewDefs['logic'] ?? [];
}

/**
* @param $definition
* @param array $editViewFields
Expand Down

0 comments on commit b321602

Please sign in to comment.