You are here

protected function DateRecurViewsHooks::getFieldLabel in Recurring Dates Field 3.0.x

Same name and namespace in other branches
  1. 8.2 src/DateRecurViewsHooks.php \Drupal\date_recur\DateRecurViewsHooks::getFieldLabel()
  2. 3.x src/DateRecurViewsHooks.php \Drupal\date_recur\DateRecurViewsHooks::getFieldLabel()
  3. 3.1.x src/DateRecurViewsHooks.php \Drupal\date_recur\DateRecurViewsHooks::getFieldLabel()

Get the most popular label for a field storage.

Parameters

string $entityTypeId: The entity type ID.

string $fieldName: The field.

Return value

string The most popular label for a field storage.

2 calls to DateRecurViewsHooks::getFieldLabel()
DateRecurViewsHooks::fieldViewsData in src/DateRecurViewsHooks.php
Implements hook_field_views_data().
DateRecurViewsHooks::viewsData in src/DateRecurViewsHooks.php
Implements hook_views_data().

File

src/DateRecurViewsHooks.php, line 389

Class

DateRecurViewsHooks
Defines Views hooks.

Namespace

Drupal\date_recur

Code

protected function getFieldLabel($entityTypeId, $fieldName) : string {
  return \views_entity_field_label($entityTypeId, $fieldName)[0];
}