Verified Commit a8a89045 authored by Alex Pott's avatar Alex Pott
Browse files

Issue #3269000 by longwave, quietone, Shashwat Purav: fix docblock of...

Issue #3269000 by longwave, quietone, Shashwat Purav: fix docblock of TestFieldWidgetMultiple::isApplicable

(cherry picked from commit 09672b4d)
parent 10792e86
Loading
Loading
Loading
Loading
+10 −2
Original line number Diff line number Diff line
@@ -93,8 +93,16 @@ public static function multipleValidate($element, FormStateInterface $form_state
  }

  /**
   * {@inheritdoc}
   * Used in \Drupal\field\Tests\EntityReference\EntityReferenceAdminTest::testAvailableFormatters().
   * Test is the widget is applicable to the field definition.
   *
   * @param \Drupal\Core\Field\FieldDefinitionInterface $field_definition
   *   The field definition that should be checked.
   *
   * @return bool
   *   TRUE if the machine name of the field is not equals to
   *   field_onewidgetfield, FALSE otherwise.
   *
   * @see \Drupal\Tests\field\Functional\EntityReference\EntityReferenceAdminTest::testAvailableFormatters
   */
  public static function isApplicable(FieldDefinitionInterface $field_definition) {
    // Returns FALSE if machine name of the field equals field_onewidgetfield.