function FieldHandlerInterface::isValueEmpty
Same name in other branches
- 9 core/modules/views/src/Plugin/views/field/FieldHandlerInterface.php \Drupal\views\Plugin\views\field\FieldHandlerInterface::isValueEmpty()
- 8.9.x core/modules/views/src/Plugin/views/field/FieldHandlerInterface.php \Drupal\views\Plugin\views\field\FieldHandlerInterface::isValueEmpty()
- 10 core/modules/views/src/Plugin/views/field/FieldHandlerInterface.php \Drupal\views\Plugin\views\field\FieldHandlerInterface::isValueEmpty()
Checks if a field value is empty.
Parameters
$value: The field value.
bool $empty_zero: Whether or not this field is configured to consider 0 as empty.
bool $no_skip_empty: (optional) Whether or not to use empty() to check the value. Defaults to TRUE.
Return value
bool TRUE if the value is considered empty, FALSE otherwise.
1 method overrides FieldHandlerInterface::isValueEmpty()
- FieldPluginBase::isValueEmpty in core/
modules/ views/ src/ Plugin/ views/ field/ FieldPluginBase.php - Checks if a field value is empty.
File
-
core/
modules/ views/ src/ Plugin/ views/ field/ FieldHandlerInterface.php, line 234
Class
- FieldHandlerInterface
- Base field handler that has no options and renders an unformatted field.
Namespace
Drupal\views\Plugin\views\fieldCode
public function isValueEmpty($value, $empty_zero, $no_skip_empty = TRUE);
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.