Who can explain what it code do:
$parts = $this->getParts();
$friendlyUrlIndex = $parts->search(function (FriendlyUrl $friendlyUrl) use ($entityType) {
return $friendlyUrl->entity_type == $entityType;
});
return $parts[$friendlyUrlIndex];
$parts - it's collection.
How edit this function for working with single variable?
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire