You are here

protected function Container::processInfo in Little helpers 7.2

Turn hook info into specs.

Parameters

array $info: Result of a hook invocation.

Return value

array The processed specs.

2 calls to Container::processInfo()
Container::loadSpecsFromHook in src/Services/Container.php
Load specs by invoking a hook.
Container::setSpecs in src/Services/Container.php
Add specs to the registry.

File

src/Services/Container.php, line 107

Class

Container
Dependency injection container.

Namespace

Drupal\little_helpers\Services

Code

protected function processInfo(array $info) {
  foreach ($info as &$spec) {
    if (!is_array($spec)) {
      $spec = [
        'class' => $spec,
      ];
    }
    $spec = $this
      ->process($spec);
  }
  return $info;
}