-
Notifications
You must be signed in to change notification settings - Fork 55
Support entity extra fields #108 #137
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
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.
Good job on this one!
One little nitpick, tho.
| if (!$this->getContextProperty('limit')) { | ||
| $sources[] = $this->getSourceField($extra_field_name, $field['label']); | ||
| } | ||
| elseif (in_array($extra_field_name, $this->getContextProperty('limit'))) { |
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.
These conditions could be merged with a "||"
if (!$this->getContextProperty('limit') || in_array($extra_field_name, $this->getContextProperty('limit'))) {
|
Did I say it works well? :) |
| $plugin_id, | ||
| $plugin_definition, | ||
| $container->get('plugin.manager.ui_patterns'), | ||
| $container->get('typed_data_manager'), |
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.
Why add UiPatternsManager and TypedDataManager to the constructor, if they aren't being stored or used anywhere?
|
This PR has been moved to Drupal.org issue queue: https://www.drupal.org/project/ui_patterns/issues/3311088 |
Support entity extra fields #108