Skip to content

Conversation

@ademarco
Copy link
Member

Support entity extra fields #108

Copy link

@DuaelFr DuaelFr left a 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'))) {
Copy link

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'))) {

@DuaelFr
Copy link

DuaelFr commented Aug 10, 2018

Did I say it works well? :)

$plugin_id,
$plugin_definition,
$container->get('plugin.manager.ui_patterns'),
$container->get('typed_data_manager'),

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?

DuaelFr pushed a commit to DuaelFr/ui_patterns that referenced this pull request Nov 30, 2019
DuaelFr pushed a commit to DuaelFr/ui_patterns that referenced this pull request Oct 29, 2020
@DuaelFr
Copy link

DuaelFr commented Sep 22, 2022

This PR has been moved to Drupal.org issue queue: https://www.drupal.org/project/ui_patterns/issues/3311088

@FlorentTorregrosa
Copy link
Collaborator

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.

6 participants