Skip to content
Snippets Groups Projects
Verified Commit 5221f2e0 authored by quietone's avatar quietone
Browse files

Issue #3504660 by alvar0hurtad0, daniel_mm02, nicxvan, smustgrave: Incorrect...

Issue #3504660 by alvar0hurtad0, daniel_mm02, nicxvan, smustgrave: Incorrect 'label' in hook_views_data example
parent c7ebe845
No related branches found
No related tags found
3 merge requests!11197Issue #3506427 by eduardo morales alberti: Remove responsive_image.ajax from hook,!2964Issue #2865710 : Dependencies from only one instance of a widget are used in display modes,!10223132456: Fix issue where views instances are emptied before an ajax request is complete
Pipeline #423816 passed with warnings
Pipeline: drupal

#423850

    Pipeline: drupal

    #423845

      Pipeline: drupal

      #423840

        +4
        ...@@ -317,7 +317,7 @@ function hook_views_data(): array { ...@@ -317,7 +317,7 @@ function hook_views_data(): array {
        // ID of relationship handler plugin to use. // ID of relationship handler plugin to use.
        'id' => 'standard', 'id' => 'standard',
        // Default label for relationship in the UI. // Default label for relationship in the UI.
        'label' => t('Example node'), 'title' => t('Example node'),
        // Description shown within the add relationship handler in the UI. // Description shown within the add relationship handler in the UI.
        'help' => t('Relationship between the node and node field data'), 'help' => t('Relationship between the node and node field data'),
        ], ],
        ...@@ -396,7 +396,7 @@ function hook_views_data(): array { ...@@ -396,7 +396,7 @@ function hook_views_data(): array {
        'id' => 'boolean', 'id' => 'boolean',
        // Override the generic field title, so that the filter uses a different // Override the generic field title, so that the filter uses a different
        // label in the UI. // label in the UI.
        'label' => t('Published'), 'title' => t('Published'),
        // Override the default BooleanOperator filter handler's 'type' setting, // Override the default BooleanOperator filter handler's 'type' setting,
        // to display this as a "Yes/No" filter instead of a "True/False" filter. // to display this as a "Yes/No" filter instead of a "True/False" filter.
        'type' => 'yes-no', 'type' => 'yes-no',
        ...@@ -517,7 +517,7 @@ function hook_views_data_alter(array &$data) { ...@@ -517,7 +517,7 @@ function hook_views_data_alter(array &$data) {
        'field' => 'fid', 'field' => 'fid',
        // ID of relationship handler plugin to use. // ID of relationship handler plugin to use.
        'id' => 'standard', 'id' => 'standard',
        'label' => t('Default label for relationship'), 'title' => t('Default label for relationship'),
        // Description shown within the add relationship handler in the UI. // Description shown within the add relationship handler in the UI.
        'help' => t('Description of the placeholder field relationship'), 'help' => t('Description of the placeholder field relationship'),
        ], ],
        ...@@ -557,7 +557,7 @@ function hook_field_views_data(FieldStorageConfigInterface $field_storage): arra ...@@ -557,7 +557,7 @@ function hook_field_views_data(FieldStorageConfigInterface $field_storage): arra
        'id' => 'standard', 'id' => 'standard',
        'base' => 'file_managed', 'base' => 'file_managed',
        'base field' => 'target_id', 'base field' => 'target_id',
        'label' => t('image from @field_name', ['@field_name' => $field_storage->getName()]), 'title' => t('image from @field_name', ['@field_name' => $field_storage->getName()]),
        ]; ];
        } }
        ......
        0% Loading or .
        You are about to add 0 people to the discussion. Proceed with caution.
        Please register or to comment