function InlineBlockPrivateFilesTest::getFileSecret
Same name in other branches
- 9 core/modules/layout_builder/tests/src/FunctionalJavascript/InlineBlockPrivateFilesTest.php \Drupal\Tests\layout_builder\FunctionalJavascript\InlineBlockPrivateFilesTest::getFileSecret()
- 10 core/modules/layout_builder/tests/src/FunctionalJavascript/InlineBlockPrivateFilesTest.php \Drupal\Tests\layout_builder\FunctionalJavascript\InlineBlockPrivateFilesTest::getFileSecret()
- 11.x core/modules/layout_builder/tests/src/FunctionalJavascript/InlineBlockPrivateFilesTest.php \Drupal\Tests\layout_builder\FunctionalJavascript\InlineBlockPrivateFilesTest::getFileSecret()
Gets the text secret for a file.
Parameters
\Drupal\file\FileInterface $file: The file entity.
Return value
string The text secret.
3 calls to InlineBlockPrivateFilesTest::getFileSecret()
- InlineBlockPrivateFilesTest::assertFileAccessibleOnNode in core/
modules/ layout_builder/ tests/ src/ FunctionalJavascript/ InlineBlockPrivateFilesTest.php - Asserts a file is accessible on the page.
- InlineBlockPrivateFilesTest::createPrivateFile in core/
modules/ layout_builder/ tests/ src/ FunctionalJavascript/ InlineBlockPrivateFilesTest.php - Creates a private file.
- InlineBlockPrivateFilesTest::testPrivateFiles in core/
modules/ layout_builder/ tests/ src/ FunctionalJavascript/ InlineBlockPrivateFilesTest.php - Test access to private files added via inline blocks in the layout builder.
File
-
core/
modules/ layout_builder/ tests/ src/ FunctionalJavascript/ InlineBlockPrivateFilesTest.php, line 270
Class
- InlineBlockPrivateFilesTest
- Test access to private files in block fields on the Layout Builder.
Namespace
Drupal\Tests\layout_builder\FunctionalJavascriptCode
protected function getFileSecret(FileInterface $file) {
return "The secret in {$file->label()}";
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.