Skip to content

Instantly share code, notes, and snippets.

View mitchellshelton's full-sized avatar

Mitchell Shelton mitchellshelton

View GitHub Profile
@mitchellshelton
mitchellshelton / FormTest.php
Last active October 21, 2018 15:52 — forked from AlexSkrypnyk/mymodule.css
Drupal 'add more' and 'remove single' AJAX buttons on multi value custom field using FormAPI. Converted to a D8 version, forked from https://github.com/alexdesignworks
<?php
/**
* @file
* Contains \Drupal\mymodule\Form\FormTest.
*/
namespace Drupal\mymodule\Form;
use Drupal\Core\Form\FormBase;
use Drupal\Core\Form\FormStateInterface;