Commit 5fee118c authored by John Voskuilen's avatar John Voskuilen
Browse files

Issue #3219111: Clean code - updating some comments

parent e19f636a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);
+4 −1
Original line number Diff line number Diff line
@@ -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 = [];
@@ -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);