-
Notifications
You must be signed in to change notification settings - Fork 18
IBX-9855: Added isHidden
property to ContentTree Node
#1675
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
Conversation
@@ -35,6 +35,9 @@ class Node extends RestValue | |||
/** @var bool */ | |||
public $isInvisible; | |||
|
|||
/** @var bool */ | |||
public $isHidden; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
public $isHidden; | |
public bool $isHidden; |
$generator->startValueElement('isHidden', $generator->serializeBool($data->isHidden)); | ||
$generator->endValueElement('isHidden'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use valueElement instead.
@@ -396,7 +395,8 @@ private function buildNode( | |||
'', // node name will be provided later by `supplyTranslatedContentName` method | |||
null !== $contentType ? $contentType->getIdentifier() : '', | |||
null === $contentType || $contentType->isContainer(), | |||
$location->isInvisible() || $location->isHidden(), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Isn't that behavior change?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes it is, It is needed for FE
36396ef
to
a9f373a
Compare
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
QA Approved on DXP Commerce 4.6.x-dev
Related PRs:
Description:
Added
isHidden
property to ContentTree Node