public static function TestFieldWidgetMultiple::isApplicable in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/field/tests/modules/field_test/src/Plugin/Field/FieldWidget/TestFieldWidgetMultiple.php \Drupal\field_test\Plugin\Field\FieldWidget\TestFieldWidgetMultiple::isApplicable()
Used in \Drupal\field\Tests\EntityReference\EntityReferenceAdminTest::testAvailableFormatters().
Overrides WidgetBase::isApplicable
File
- core/
modules/ field/ tests/ modules/ field_test/ src/ Plugin/ Field/ FieldWidget/ TestFieldWidgetMultiple.php, line 104 - Contains \Drupal\field_test\Plugin\Field\FieldWidget\TestFieldWidgetMultiple.
Class
- TestFieldWidgetMultiple
- Plugin implementation of the 'test_field_widget_multiple' widget.
Namespace
Drupal\field_test\Plugin\Field\FieldWidgetCode
public static function isApplicable(FieldDefinitionInterface $field_definition) {
// Returns FALSE if machine name of the field equals field_onewidgetfield.
return $field_definition
->getName() != "field_onewidgetfield";
}