protected function PbfSynchronize::hasUnlimitedCardinality in Permissions by field 8
Check if a field has an unlimited cardinality.
Parameters
\Drupal\field\FieldConfigInterface $fieldConfig: The field instance to verify.
Return value
bool Return TRUE if cardinality is unlimited.
2 calls to PbfSynchronize::hasUnlimitedCardinality()
- PbfSynchronize::findPbfFieldsSynchronized in src/
PbfSynchronize.php - Find pbf fields synchronized attached on an entity.
- PbfSynchronize::synchronizeTarget in src/
PbfSynchronize.php - Launch the synchronization belong the operation done on the entity.
File
- src/
PbfSynchronize.php, line 91
Class
- PbfSynchronize
- Class PbfSynchronize.
Namespace
Drupal\pbfCode
protected function hasUnlimitedCardinality(FieldConfigInterface $fieldConfig) {
return $fieldConfig
->getFieldStorageDefinition()
->getCardinality() === FieldStorageDefinitionInterface::CARDINALITY_UNLIMITED;
}