Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. BuilderHelpers.php

function BuilderHelpers::addModifier

Adds a modifier and returns new modifier bitmask.

Parameters

int $modifiers Existing modifiers:

int $modifier Modifier to set:

Return value

int New modifiers

25 calls to BuilderHelpers::addModifier()
ClassConst::makeFinal in vendor/nikic/php-parser/lib/PhpParser/Builder/ClassConst.php
Makes the constant final.
ClassConst::makePrivate in vendor/nikic/php-parser/lib/PhpParser/Builder/ClassConst.php
Makes the constant private.
ClassConst::makeProtected in vendor/nikic/php-parser/lib/PhpParser/Builder/ClassConst.php
Makes the constant protected.
ClassConst::makePublic in vendor/nikic/php-parser/lib/PhpParser/Builder/ClassConst.php
Makes the constant public.
Method::makeAbstract in vendor/nikic/php-parser/lib/PhpParser/Builder/Method.php
Makes the method abstract.

... See full list

File

vendor/nikic/php-parser/lib/PhpParser/BuilderHelpers.php, line 325

Class

BuilderHelpers
This class defines helpers used in the implementation of builders. Don't use it directly.

Namespace

PhpParser

Code

public static function addModifier(int $modifiers, int $modifier) : int {
    Modifiers::verifyModifier($modifiers, $modifier);
    return $modifiers | $modifier;
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal