Commit d81631d3 authored by bojanz's avatar bojanz

Add forgotten AddressFieldItemList.php

parent 1e904916
<?php
namespace Drupal\address\Plugin\Field\FieldType;
use Drupal\Core\Field\FieldItemList;
use Drupal\Core\Form\FormStateInterface;
/**
* Defines the 'address' field item list class.
*/
class AddressFieldItemList extends FieldItemList {
/**
* {@inheritdoc}
*/
public function defaultValuesFormValidate(array $element, array &$form, FormStateInterface $form_state) {
// Skip validation on the default value form.
// This allows setting an incomplete address as the default value.
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment