Order speakers
This commit is contained in:
parent
05e8983d98
commit
3e0d8a1cc7
6 changed files with 7 additions and 7 deletions
|
@ -29,7 +29,7 @@ class SpeakersExtension extends AbstractExtension
|
|||
public function getSessionSpeakers($session, array $speakers): array
|
||||
{
|
||||
return collect($speakers)->filter(function ($speaker) use ($session): bool {
|
||||
return collect($session['speakers'])->contains($speaker['name']);
|
||||
return collect($session['speakers'])->contains($speaker['title']);
|
||||
})->values()->toArray();
|
||||
}
|
||||
|
||||
|
@ -44,7 +44,7 @@ class SpeakersExtension extends AbstractExtension
|
|||
public function getSpeakerSessions($speaker, array $sessions): array
|
||||
{
|
||||
return collect($sessions)->filter(function ($session) use ($speaker): bool {
|
||||
return collect($session['speakers'])->contains($speaker['name']);
|
||||
return collect($session['speakers'])->contains($speaker['title']);
|
||||
})->values()->toArray();
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue