Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
project
address
Commits
d81631d3
Commit
d81631d3
authored
Apr 04, 2019
by
bojanz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add forgotten AddressFieldItemList.php
parent
1e904916
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
0 deletions
+21
-0
src/Plugin/Field/FieldType/AddressFieldItemList.php
src/Plugin/Field/FieldType/AddressFieldItemList.php
+21
-0
No files found.
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