Skip to content
Snippets Groups Projects

Issue #3433847 by liber_t: Automated Drupal 11 compatibility fixes for paragraphs_usage

Merged Issue #3433847 by liber_t: Automated Drupal 11 compatibility fixes for paragraphs_usage
Merged Ines WALLON requested to merge issue/paragraphs_usage-3433847:1.0.x into 1.0.x
Files
16
<?php
<?php
declare(strict_types = 1);
declare(strict_types=1);
namespace Drupal\paragraphs_usage\Controller;
namespace Drupal\paragraphs_usage\Controller;
use Drupal\Core\Controller\ControllerBase;
use Drupal\Core\Controller\ControllerBase;
use Drupal\Core\Link;
use Drupal\Core\Entity\EntityFieldManager;
use Drupal\Core\Entity\EntityFieldManager;
 
use Drupal\Core\Link;
use Drupal\field_ui\FieldUI;
use Drupal\field_ui\FieldUI;
use Drupal\paragraphs\Entity\ParagraphsType;
use Drupal\paragraphs\Entity\ParagraphsType;
use Drupal\paragraphs_usage\Service\ParagraphsUsageService;
use Drupal\paragraphs_usage\Service\ParagraphsUsageService;
@@ -47,10 +47,10 @@ class ParagraphsUsageController extends ControllerBase {
@@ -47,10 +47,10 @@ class ParagraphsUsageController extends ControllerBase {
/**
/**
* {@inheritdoc}
* {@inheritdoc}
*/
*/
public static function create(ContainerInterface $container): self {
public static function create(ContainerInterface $container) {
$entity_field_manager = $container->get('entity_field.manager');
$entity_field_manager = $container->get('entity_field.manager');
$paragraphs_usage_service = $container->get('paragraphs_usage.paragraphs_usage_service');
$paragraphs_usage_service = $container->get('paragraphs_usage.paragraphs_usage_service');
return new self($entity_field_manager, $paragraphs_usage_service);
return new static($entity_field_manager, $paragraphs_usage_service);
}
}
/**
/**
Loading