public function AmazonAsinField::isEmpty in Amazon Product Advertisement API 8.2
Determines whether the data structure is empty.
Return value
bool TRUE if the data structure is empty, FALSE otherwise.
Overrides Map::isEmpty
File
- modules/
amazon_field/ src/ Plugin/ Field/ FieldType/ AmazonAsinField.php, line 99
Class
- AmazonAsinField
- Plugin implementation of the 'amazon_asin_field' field type.
Namespace
Drupal\amazon_field\Plugin\Field\FieldTypeCode
public function isEmpty() {
$value = $this
->get('value')
->getValue();
return $value === NULL || $value === '';
}