Skip to content

Conversation

@ADmad
Copy link
Member

@ADmad ADmad commented Jan 30, 2026

No description provided.

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds a new getIdentity() method to the IdentityHelper class that returns the identity instance directly, allowing users to access the full identity object rather than just its data. It also improves the documentation for the existing get() method.

Changes:

  • Added getIdentity() method to return the IdentityInterface instance
  • Enhanced documentation for the get() method to clarify its behavior
  • Added a test case for the new getIdentity() method

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.

File Description
src/View/Helper/IdentityHelper.php Adds the new getIdentity() method and improves docblock for get() method
tests/TestCase/View/Helper/IdentityHelperTest.php Adds basic test coverage for the new getIdentity() method

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

ADmad and others added 2 commits January 30, 2026 14:24
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Copy link

Copilot AI commented Jan 30, 2026

@ADmad I've opened a new pull request, #768, to work on those changes. Once the pull request is ready, I'll request review from you.

Copilot AI and others added 2 commits January 30, 2026 09:09
Co-authored-by: ADmad <142658+ADmad@users.noreply.github.com>
Add test coverage for getIdentity() with no identity present
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.

3 participants