public function MaestroWebformHandler::getSummary in Maestro 3.x
Same name and namespace in other branches
- 8.2 modules/maestro_webform/src/Plugin/WebformHandler/MaestroWebformHandler.php \Drupal\maestro_webform\Plugin\WebformHandler\MaestroWebformHandler::getSummary()
Returns a render array summarizing the configuration of the webform handler.
Return value
array A render array.
Overrides WebformHandlerBase::getSummary
File
- modules/
maestro_webform/ src/ Plugin/ WebformHandler/ MaestroWebformHandler.php, line 107
Class
- MaestroWebformHandler
- Launches a Maestro workflow with a Webform submission.
Namespace
Drupal\maestro_webform\Plugin\WebformHandlerCode
public function getSummary() {
// Gets the overall settings.
$summary = parent::getSummary();
// Lets now fetch the Maestro Template label.
$template = MaestroEngine::getTemplate($this->configuration['maestro_template']);
$summary['#settings']['template_label'] = $template->label;
return $summary;
}