function TwigSandboxTest::getTwigEntityDangerousMethods

Data provider for ::testEntityDangerousMethods.

Return value

array

File

core/tests/Drupal/Tests/Core/Template/TwigSandboxTest.php, line 63

Class

TwigSandboxTest
Tests the twig sandbox policy.

Namespace

Drupal\Tests\Core\Template

Code

public function getTwigEntityDangerousMethods() {
  return [
    [
      '{{ entity.delete }}',
    ],
    [
      '{{ entity.save }}',
    ],
    [
      '{{ entity.create }}',
    ],
  ];
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.