public function OfficeHoursItemListInterface::getRows in Office Hours 8
Returns the items of a field.
@usage The function is not used anymore in module, but is used in local installations theming in twig, skipping the Drupal field UI/formatters. Since twig filters are static methods, using a trait isnt really an option. Some installations are also subclassing this class.
Parameters
array $settings:
array $field_settings:
$time:
Return value
array The formatted list of slots.
1 method overrides OfficeHoursItemListInterface::getRows()
- OfficeHoursItemList::getRows in src/
Plugin/ Field/ FieldType/ OfficeHoursItemList.php - Returns the items of a field.
File
- src/
Plugin/ Field/ FieldType/ OfficeHoursItemListInterface.php, line 29
Class
- OfficeHoursItemListInterface
- Implements ItemListInterface for OfficeHours.
Namespace
Drupal\office_hours\Plugin\Field\FieldTypeCode
public function getRows(array $settings, array $field_settings, $time = NULL);