function ConfigExportTest::createBlockContent
Same name in other branches
- 10 core/modules/config/tests/src/FunctionalJavascript/ConfigExportTest.php \Drupal\Tests\config\FunctionalJavascript\ConfigExportTest::createBlockContent()
Creates test blocks.
Parameters
$title: Title of the block.
Return value
\Drupal\block_content\Entity\BlockContent
Throws
\Drupal\Core\Entity\EntityStorageException
1 call to ConfigExportTest::createBlockContent()
- ConfigExportTest::setUp in core/
modules/ config/ tests/ src/ FunctionalJavascript/ ConfigExportTest.php
File
-
core/
modules/ config/ tests/ src/ FunctionalJavascript/ ConfigExportTest.php, line 69
Class
- ConfigExportTest
- Tests the config export form.
Namespace
Drupal\Tests\config\FunctionalJavascriptCode
protected function createBlockContent($title) {
$block_content = BlockContent::create([
'info' => $title,
'type' => 'basic',
]);
$block_content->save();
return $block_content;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.