public function ExtraFieldFormInterface::formElement in Extra Field 8.2
Builds a renderable array for the field.
Parameters
array $form: The entity form array.
\Drupal\Core\Form\FormStateInterface $form_state: The form state object.
Return value
array Renderable array.
4 methods override ExtraFieldFormInterface::formElement()
- CustomSubmit::formElement in modules/
extra_field_example/ src/ Plugin/ ExtraField/ Form/ CustomSubmit.php - Builds a renderable array for the field.
- ExampleCustomInput::formElement in modules/
extra_field_example/ src/ Plugin/ ExtraField/ Form/ ExampleCustomInput.php - Builds a renderable array for the field.
- ExampleMarkup::formElement in modules/
extra_field_example/ src/ Plugin/ ExtraField/ Form/ ExampleMarkup.php - Builds a renderable array for the field.
- SingleItemTest::formElement in tests/
extra_field_test/ src/ Plugin/ ExtraField/ Form/ SingleItemTest.php - Builds a renderable array for the field.
File
- src/
Plugin/ ExtraFieldFormInterface.php, line 26
Class
- ExtraFieldFormInterface
- Defines an interface for Extra Field Form plugins.
Namespace
Drupal\extra_field\PluginCode
public function formElement(array &$form, FormStateInterface $form_state);