Condition

Generic class for a series of conditions in a query. Hierarchy class \Drupal\Core\Database\Query\Condition implements \Countable, ConditionInterface File core/lib/Drupal/Core/Database/Query/Condition.php, line 11 Namespace Drupal\Core\Database\Query Members Name Modifiers Type Description Condition::$arguments protected property Array of arguments. Condition::$changed protected property Whether the conditions have been changed. Condition::$conditions protecte

Condition

Defines a condition plugin annotation object. Condition plugins provide generalized conditions for use in other operations, such as conditional block placement. Plugin Namespace: Plugin\Condition For a working example, see \Drupal\user\Plugin\Condition\UserRole. Hierarchy class \Drupal\Component\Annotation\Plugin implements AnnotationInterfaceclass \Drupal\Core\Condition\Annotation\Condition See also \Drupal\Core\Condition\ConditionManager \Drupal\Core\Condition\ConditionInterface \Drupal\

CompositeFormElementTrait::preRenderCompositeFormElement

public static CompositeFormElementTrait::preRenderCompositeFormElement($element) Adds form element theming to an element if its title or description is set. This is used as a pre render function for checkboxes and radios. File core/lib/Drupal/Core/Render/Element/CompositeFormElementTrait.php, line 18 Class CompositeFormElementTrait Provides a trait for radios, checkboxes, and similar composite form elements. Namespace Drupal\Core\Render\Element Code public static function preRenderComp

CompositeFormElementTrait

Provides a trait for radios, checkboxes, and similar composite form elements. Any form element that is comprised of several distinct parts can use this trait to add support for a composite title or description. Hierarchy trait \Drupal\Core\Render\Element\CompositeFormElementTrait File core/lib/Drupal/Core/Render/Element/CompositeFormElementTrait.php, line 11 Namespace Drupal\Core\Render\Element Members Name Modifiers Type Description CompositeFormElementTrait::preRenderComposi

Composer::preAutoloadDump

public static Composer::preAutoloadDump(Event $event) Add vendor classes to Composer's static classmap. File core/lib/Drupal/Core/Composer/Composer.php, line 73 Class Composer Provides static functions for composer script events. Namespace Drupal\Core\Composer Code public static function preAutoloadDump(Event $event) { // We need the root package so we can add our classmaps to its loader. $package = $event->getComposer()->getPackage(); // We need the local repository so tha

Composer::findPackageKey

protected static Composer::findPackageKey($package_name) Find the array key for a given package name with a case-insensitive search. Parameters string $package_name: The package name from composer. This is always already lower case. Return value string|null The string key, or NULL if none was found. File core/lib/Drupal/Core/Composer/Composer.php, line 202 Class Composer Provides static functions for composer script events. Namespace Drupal\Core\Composer Code protected static functio

Composer::ensureHtaccess

public static Composer::ensureHtaccess(Event $event) Ensures that .htaccess and web.config files are present in Composer root. Parameters \Composer\Script\Event $event: File core/lib/Drupal/Core/Composer/Composer.php, line 110 Class Composer Provides static functions for composer script events. Namespace Drupal\Core\Composer Code public static function ensureHtaccess(Event $event) { // The current working directory for composer scripts is where you run // composer from. $vendor

Composer::deleteRecursive

protected static Composer::deleteRecursive($path) Helper method to remove directories and the files they contain. Parameters string $path: The directory or file to remove. It must exist. Return value bool TRUE on success or FALSE on failure. File core/lib/Drupal/Core/Composer/Composer.php, line 231 Class Composer Provides static functions for composer script events. Namespace Drupal\Core\Composer Code protected static function deleteRecursive($path) { if (is_file($path) || is_link(

Composer::$packageToCleanup

File core/lib/Drupal/Core/Composer/Composer.php, line 17 Class Composer Provides static functions for composer script events. Namespace Drupal\Core\Composer Code protected static $packageToCleanup = [ 'behat/mink' => ['tests', 'driver-testsuite'], 'behat/mink-browserkit-driver' => ['tests'], 'behat/mink-goutte-driver' => ['tests'], 'doctrine/cache' => ['tests'], 'doctrine/collections' => ['tests'], 'doctrine/common' => ['tests'], 'doctrine/inflector' =&g

Composer

Provides static functions for composer script events. Hierarchy class \Drupal\Core\Composer\Composer See also https://getcomposer.org/doc/articles/scripts.md File core/lib/Drupal/Core/Composer/Composer.php, line 15 Namespace Drupal\Core\Composer Members Name Modifiers Type Description Composer::$packageToCleanup protected static property Composer::deleteRecursive protected static function Helper method to remove directories and the files they contain. Composer