Skip to content
Snippets Groups Projects

Issue #2707689: NodeForm::actions() checks for delete access on new entities

1 file
+ 3
5
Compare changes
  • Side-by-side
  • Inline
  • ce7120d5
    Issue #3279840 by Spokje, mallezie, alexpott: Fix... · ce7120d5
    Alex Pott authored
    Issue #3279840 by Spokje, mallezie, alexpott: Fix \Drupal\Tests\quickedit\FunctionalJavascript\SettingsTrayIntegrationTest::createBlockContent()
@@ -168,9 +168,8 @@ public function testCustomBlockLinks() {
/**
* Creates a custom block.
*
* @param bool|string $title
* (optional) Title of block. When no value is given uses a random name.
* Defaults to FALSE.
* @param string $title
* Title of block.
* @param string $bundle
* (optional) Bundle name. Defaults to 'basic'.
* @param bool $save
@@ -179,8 +178,7 @@ public function testCustomBlockLinks() {
* @return \Drupal\block_content\Entity\BlockContent
* Created custom block.
*/
protected function createBlockContent($title = FALSE, $bundle = 'basic', $save = TRUE) {
$title = $title ?: $this->randomName();
protected function createBlockContent(string $title, string $bundle = 'basic', bool $save = TRUE): BlockContent {
$block_content = BlockContent::create([
'info' => $title,
'type' => $bundle,
Loading