public function MultilingualBehaviorTest::enableConvertingParagraphsTypeToLibrary in Paragraphs 8
Enables converting paragraphs type into library.
Parameters
string $paragraphs_type: Paragraphs type name.
Throws
\Exception Throws Exception if ajax path is not specified.
3 calls to MultilingualBehaviorTest::enableConvertingParagraphsTypeToLibrary()
- MultilingualBehaviorTest::testDetachBeforeTranslation in modules/
paragraphs_library/ tests/ src/ Functional/ MultilingualBehaviorTest.php - Tests detach paragraph before adding a translation for the node.
- MultilingualBehaviorTest::testDetachTranslatedNestedParagraphItemFromLibrary in modules/
paragraphs_library/ tests/ src/ Functional/ MultilingualBehaviorTest.php - Tests converting translated nested paragraph from library.
- MultilingualBehaviorTest::testMoveTranslatedNestedParagraphToLibrary in modules/
paragraphs_library/ tests/ src/ Functional/ MultilingualBehaviorTest.php - Tests converting translated nested paragraph into library.
File
- modules/
paragraphs_library/ tests/ src/ Functional/ MultilingualBehaviorTest.php, line 296
Class
- MultilingualBehaviorTest
- Tests paragraphs library multilingual functionality.
Namespace
Drupal\Tests\paragraphs_library\FunctionalCode
public function enableConvertingParagraphsTypeToLibrary($paragraphs_type) {
$edit = [
'allow_library_conversion' => 1,
];
$this
->drupalGet('admin/structure/paragraphs_type/' . $paragraphs_type);
$this
->submitForm($edit, 'Save');
}