protected function prepareEventManagers(array $managers) {
    $values = NULL;

    foreach ($managers as $uuid) {
      // Load the user(s) by the given uuid(s).
      $load = $this->userStorage->loadByProperties(['uuid' => $uuid]);
      $account = current($load);

      if ($account instanceof User) {
        $properties = [
          'target_id' => $account->id(),
        ];

        $values[] = $properties;
      }
    }
    return $values;
  }
protected function prepareEventManagers(array $managers) {
    $values = NULL;

    foreach ($managers as $uuid) {
      // Load the user(s) by the given uuid(s).
      $load = $this->userStorage->loadByProperties(['uuid' => $uuid]);
      $account = current($load);

      if ($account instanceof User) {
        $properties = [
          'target_id' => $account->id(),
        ];

        $values[] = $properties;
      }
    }
    return $values;
  }
protected function prepareEventManagers ( array $ managers ) { $ values = NULL ; foreach ( $ managers as $ uuid ) { // Load the user(s) by the given uuid(s). $ load = $ this -> userStorage -> loadByProperties ( [ 'uuid' => $ uuid ] ) ; $ account = current ( $ load ) ; if ( $ account instanceof User ) { $ properties = [ 'target_id' => $ account -> id ( ) , ] ; $ values [ ] = $ properties ; } } return $ values ; }
Returns event managers.

@param array $managers
An array of uuids.

@return array|null
Returns an array or null.
Returns event managers .