Loading src/Plugin/Field/FieldType/OfficeHoursItemListInterface.php +1 −1 Original line number Diff line number Diff line Loading @@ -28,7 +28,7 @@ interface OfficeHoursItemListInterface extends FieldItemListInterface { * * @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. * Since twig filters are static methods, a trait is not really an option. * Some installations are also subclassing this class. */ public function getRows(array $settings, array $field_settings, array $third_party_settings, $time = NULL); Loading src/Plugin/WebformElement/WebformOfficeHours.php +4 −1 Original line number Diff line number Diff line Loading @@ -172,7 +172,7 @@ class WebformOfficeHours extends WebformCompositeBase { * * Copied from office_hours\...\OfficeHoursFormatterDefault\viewElements(). * * @todo Allow to changgetWebformOfficeHoursPlugine the Formatter settings via UI. * @todo Allow to change the Formatter settings via UI. */ protected function viewElements(array $element, WebformSubmissionInterface $webform_submission, array $options) { $elements = []; Loading Loading @@ -281,6 +281,9 @@ class WebformOfficeHours extends WebformCompositeBase { * The plugin_id for the widget. * @param array $element * An element. * * @return array * A plugin. */ protected function getWebformOfficeHoursPlugin($service_id, $plugin_id, array $element) { $field_definition = $this->getFieldDefinition($element); Loading Loading
src/Plugin/Field/FieldType/OfficeHoursItemListInterface.php +1 −1 Original line number Diff line number Diff line Loading @@ -28,7 +28,7 @@ interface OfficeHoursItemListInterface extends FieldItemListInterface { * * @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. * Since twig filters are static methods, a trait is not really an option. * Some installations are also subclassing this class. */ public function getRows(array $settings, array $field_settings, array $third_party_settings, $time = NULL); Loading
src/Plugin/WebformElement/WebformOfficeHours.php +4 −1 Original line number Diff line number Diff line Loading @@ -172,7 +172,7 @@ class WebformOfficeHours extends WebformCompositeBase { * * Copied from office_hours\...\OfficeHoursFormatterDefault\viewElements(). * * @todo Allow to changgetWebformOfficeHoursPlugine the Formatter settings via UI. * @todo Allow to change the Formatter settings via UI. */ protected function viewElements(array $element, WebformSubmissionInterface $webform_submission, array $options) { $elements = []; Loading Loading @@ -281,6 +281,9 @@ class WebformOfficeHours extends WebformCompositeBase { * The plugin_id for the widget. * @param array $element * An element. * * @return array * A plugin. */ protected function getWebformOfficeHoursPlugin($service_id, $plugin_id, array $element) { $field_definition = $this->getFieldDefinition($element); Loading