Skip to content
Snippets Groups Projects
Verified Commit 70cd4ec2 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 f36d3582
No related branches found
No related tags found
No related merge requests found
......@@ -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.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment