public function ConfigurableFieldManagerInterface::hasData in Commerce Core 8.2
Checks whether the configurable field has data.
Parameters
\Drupal\entity\BundleFieldDefinition $field_definition: The field definition.
Return value
bool TRUE if data was found, FALSE otherwise.
Throws
\InvalidArgumentException Thrown when given an incomplete field definition (missing name, target entity type ID, or target bundle).
\RuntimeException Thrown when no matching field was found.
1 method overrides ConfigurableFieldManagerInterface::hasData()
- ConfigurableFieldManager::hasData in src/
ConfigurableFieldManager.php - Checks whether the configurable field has data.
File
- src/
ConfigurableFieldManagerInterface.php, line 59
Class
- ConfigurableFieldManagerInterface
- Manages configurable fields based on field definitions.
Namespace
Drupal\commerceCode
public function hasData(EntityBundleFieldDefinition $field_definition);