Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
address
Commits
d81631d3
Commit
d81631d3
authored
Apr 04, 2019
by
bojanz
Browse files
Add forgotten AddressFieldItemList.php
parent
1e904916
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/Plugin/Field/FieldType/AddressFieldItemList.php
0 → 100644
View file @
d81631d3
<?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.
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment