Skip to content
Snippets Groups Projects
Commit 7b99d86b authored by mxh's avatar mxh
Browse files

Issue #3292362 by mxh, rkoller: Getting deprecated function: calling static...

Issue #3292362 by mxh, rkoller: Getting deprecated function: calling static trait method when creating a new model with PHP 8.1
parent f57fc537
No related branches found
Tags 1.0.8
No related merge requests found
......@@ -11,7 +11,7 @@ use Drupal\eca\Entity\Model;
use Drupal\eca\Plugin\ECA\EcaPluginBase;
use Drupal\eca\Plugin\ECA\Modeller\ModellerBase;
use Drupal\eca\Plugin\ECA\Modeller\ModellerInterface;
use Drupal\eca\Service\ServiceTrait;
use Drupal\eca\Service\Modellers;
use Mtownsend\XmlToArray\XmlToArray;
use Symfony\Component\HttpFoundation\BinaryFileResponse;
use Symfony\Component\HttpFoundation\Response;
......@@ -733,7 +733,7 @@ abstract class ModellerBpmnBase extends ModellerBase {
protected function prepareConfigFields(array $form): array {
$fields = [];
foreach ($form as $key => $definition) {
$label = $definition['#title'] ?? ServiceTrait::convertKeyToLabel($key);
$label = $definition['#title'] ?? Modellers::convertKeyToLabel($key);
$description = $definition['#description'] ?? NULL;
$value = $definition['#default_value'] ?? '';
$weight = $definition['#weight'] ?? 0;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment