Security update for permissions_by_term
[yaffs-website] / vendor / drupal / drupal-extension / src / Drupal / DrupalExtension / Definition / Proposal / AnnotatedDefinitionProposal.php
1 <?php
2 /**
3  * @file
4  * Override the output of proposed methods to match Drupal coding standards.
5  */
6
7 namespace Drupal\DrupalExtension\Definition\Proposal;
8
9 use Behat\Behat\Definition\Proposal\AnnotatedDefinitionProposal as BaseAnnotatedDefinitionProposal;
10
11 class AnnotatedDefinitionProposal extends BaseAnnotatedDefinitionProposal {
12   protected function generateSnippet($regex, $methodName, array $args) {
13     return sprintf(<<<PHP
14   /**
15    * @%s /^%s$/
16    */
17   public function %s(%s) {
18     throw new PendingException();
19   }
20 PHP
21       , '%s', $regex, $methodName, implode(', ', $args)
22     );
23   }
24 }