Skip to content

Commit 5d19dd4

Browse files
committed
ITKDev: Update create method
1 parent eb4d55b commit 5d19dd4

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

src/Plugin/os2web/DataLookup/DataLookupBase.php

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
namespace Drupal\os2web_datalookup\Plugin\os2web\DataLookup;
44

5+
use Drupal\Component\DependencyInjection\ContainerInterface;
56
use Drupal\Core\Form\FormStateInterface;
67
use Drupal\Core\Plugin\PluginBase;
78
use Drupal\os2web_audit\Service\Logger;
@@ -46,6 +47,18 @@ public function __construct(
4647
$this->setConfiguration($configuration);
4748
}
4849

50+
/**
51+
* {@inheritdoc}
52+
*/
53+
public static function create(ContainerInterface $container, array $configuration, $plugin_id, $plugin_definition) {
54+
return new static(
55+
$configuration,
56+
$plugin_id,
57+
$plugin_definition,
58+
$container->get('os2web_audit.logger'),
59+
);
60+
}
61+
4962
/**
5063
* {@inheritdoc}
5164
*/

0 commit comments

Comments
 (0)