Skip to content

Commit

Permalink
Issue #107: Use Paragraphs item $langcode
Browse files Browse the repository at this point in the history
Fixes  #107
  • Loading branch information
laryn committed Dec 8, 2021
1 parent ac75d75 commit 46bdb1e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion paragraphs.module
Original file line number Diff line number Diff line change
Expand Up @@ -1744,7 +1744,7 @@ function paragraphs_modal_admin_links($paragraphs_item) {
),
);
}
if ($field_info['cardinality'] != '1' && count($host_entity->{$field_info['field_name']}[$host_entity->langcode]) > 1) {
if ($field_info['cardinality'] != '1' && count($host_entity->{$field_info['field_name']}[$langcode]) > 1) {
$admin_links['#links']['paragraphs_admin_sort'] = array(
'title' => t('Sort'),
'href' => 'paragraphs/' . $paragraph_id . '/sort',
Expand Down

0 comments on commit 46bdb1e

Please sign in to comment.