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

merge-requests/2817/head^2
Alex Pott 2022-09-30 10:24:03 +01:00
parent 226cc60abf
commit 09672b4d3f
No known key found for this signature in database
GPG Key ID: BDA67E7EE836E5CE
1 changed files with 10 additions and 2 deletions

View File

@ -93,8 +93,16 @@ class TestFieldWidgetMultiple extends WidgetBase {
}
/**
* {@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.