Skip to content

Commit

Permalink
Merge pull request #2 from itk-dev/feature/os2forms-audit-fixes
Browse files Browse the repository at this point in the history
Feature/os2forms audit fixes
  • Loading branch information
jekuaitk authored Oct 29, 2024
2 parents eb4d55b + afa495f commit 2387bb1
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion src/Plugin/os2web/DataLookup/DataLookupBase.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@
namespace Drupal\os2web_datalookup\Plugin\os2web\DataLookup;

use Drupal\Core\Form\FormStateInterface;
use Drupal\Core\Plugin\ContainerFactoryPluginInterface;
use Drupal\Core\Plugin\PluginBase;
use Drupal\os2web_audit\Service\Logger;
use Symfony\Component\DependencyInjection\ContainerInterface;

/**
* Provides a base class for image effects.
Expand All @@ -16,7 +18,7 @@
* @see \Drupal\image\ImageEffectManager
* @see plugin_api
*/
abstract class DataLookupBase extends PluginBase implements DataLookupInterface {
abstract class DataLookupBase extends PluginBase implements DataLookupInterface, ContainerFactoryPluginInterface {

/**
* Plugin readiness flag.
Expand Down Expand Up @@ -46,6 +48,18 @@ public function __construct(
$this->setConfiguration($configuration);
}

/**
* {@inheritdoc}
*/
public static function create(ContainerInterface $container, array $configuration, $plugin_id, $plugin_definition) {
return new static(
$configuration,
$plugin_id,
$plugin_definition,
$container->get('os2web_audit.logger'),
);
}

/**
* {@inheritdoc}
*/
Expand Down

0 comments on commit 2387bb1

Please sign in to comment.