devel_wizard-2.x-dev/src/Controller/AutocompleteProfileController.php

src/Controller/AutocompleteProfileController.php
<?php

declare(strict_types=1);

namespace Drupal\devel_wizard\Controller;

use Drupal\Core\Extension\ProfileExtensionList;
use Symfony\Component\DependencyInjection\ContainerInterface;

class AutocompleteProfileController extends AutocompleteExtensionController {

  /**
   * {@inheritdoc}
   */
  public static function create(ContainerInterface $container) {
    return new static(
      $container->get('extension.list.profile'),
    );
  }

  public function __construct(
    protected ProfileExtensionList $profileList,
  ) {
  }

  protected function getExtensions(): iterable {
    return $this->profileList->getList();
  }

}

Главная | Обратная связь

drupal hosting | друпал хостинг | it patrol .inc