Skip to content

Conversation

@HelloSebastian
Copy link
Owner

@HelloSebastian HelloSebastian commented Dec 2, 2021

Before:

'addIf' => function () {
    return true;
}

After:

'addIf' => function ($entity) {
    return true;
}

Example

// UserTable
'addIf' => function (User $user) {
    return $user->isActive();
}

No changing break. Old function call still works.

@HelloSebastian HelloSebastian merged commit ba88033 into master Dec 2, 2021
@HelloSebastian HelloSebastian deleted the button-add-if branch December 2, 2021 15:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants