public function OfficeHoursItemList::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.
Overrides OfficeHoursItemListInterface::getRows
File
- src/
Plugin/ Field/ FieldType/ OfficeHoursItemList.php, line 21
Class
- OfficeHoursItemList
- Represents an Office hours field.
Namespace
Drupal\office_hours\Plugin\Field\FieldTypeCode
public function getRows(array $settings, array $field_settings, $time = NULL) {
return $this
->getFieldRows($this
->getValue(), $settings, $field_settings, $time);
}