Skip to content
Snippets Groups Projects
Commit 093d839e authored by spokje's avatar spokje
Browse files

\Drupal\options\Plugin\Field\FieldType\ListItemBase

parent 8457b2d6
No related branches found
No related tags found
No related merge requests found
......@@ -83,7 +83,9 @@ public static function generateSampleValue(FieldDefinitionInterface $field_defin
* {@inheritdoc}
*/
public function isEmpty() {
return empty($this->value) && (string) $this->value !== '0';
$value = $this->get('value')->getValue();
return empty($value) && (string) $value !== '0';
}
/**
......
......@@ -1960,11 +1960,6 @@ parameters:
count: 1
path: modules/options/src/Plugin/Field/FieldType/ListIntegerItem.php
-
message: "#^Access to an undefined property Drupal\\\\options\\\\Plugin\\\\Field\\\\FieldType\\\\ListItemBase\\:\\:\\$value\\.$#"
count: 1
path: modules/options/src/Plugin/Field/FieldType/ListItemBase.php
-
message: "#^Method Drupal\\\\options\\\\Plugin\\\\Field\\\\FieldType\\\\ListItemBase\\:\\:validateAllowedValue\\(\\) should return string but return statement is missing\\.$#"
count: 1
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment