function BlockContentRemoveConstraint::getFieldInfoConstraints
Same name in other branches
- 11.x core/modules/block_content/tests/src/Functional/Update/BlockContentRemoveConstraint.php \Drupal\Tests\block_content\Functional\Update\BlockContentRemoveConstraint::getFieldInfoConstraints()
Get constraints for info field.
Return value
array[] List of constraints.
1 call to BlockContentRemoveConstraint::getFieldInfoConstraints()
- BlockContentRemoveConstraint::testRunUpdates in core/
modules/ block_content/ tests/ src/ Functional/ Update/ BlockContentRemoveConstraint.php - Tests the upgrade path for moderation state reindexing.
File
-
core/
modules/ block_content/ tests/ src/ Functional/ Update/ BlockContentRemoveConstraint.php, line 66
Class
- BlockContentRemoveConstraint
- Tests the upgrade path for removing unique constraint on blocks.
Namespace
Drupal\Tests\block_content\Functional\UpdateCode
protected function getFieldInfoConstraints() {
$field_storage_definition = $this->entityDefinitionUpdateManager
->getFieldStorageDefinition('info', 'block_content');
return $field_storage_definition->getConstraints();
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.