Skip to content

refs #14 Added method for hidden resource in navigation #16

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Jan 11, 2021

Conversation

tabuna
Copy link
Member

@tabuna tabuna commented Jan 11, 2021

If you do not want a resource to appear in the navigation, you may override the displayInNavigation method of your resource class:

/**
 * Get the resource should be displayed in the navigation
 *
 * @return bool
 */
public static function displayInNavigation(): bool
{
    return false;
}

@tabuna tabuna merged commit 5a2d37e into master Jan 11, 2021
@tabuna tabuna deleted the hidden_resource_in_tavigation branch January 11, 2021 15:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant