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

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

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

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

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

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

ComplexDataInterface::set

public ComplexDataInterface::set($property_name, $value, $notify = TRUE) Sets a property value. Parameters $property_name: The name of the property to set; e.g., 'title' or 'name'. $value: The value to set, or NULL to unset the property. bool $notify: (optional) Whether to notify the parent object of the change. Defaults to TRUE. If the update stems from a parent object, set it to FALSE to avoid being notified again. Return value $this Throws \InvalidArgumentException If the specified proper

ComplexDataInterface::toArray

public ComplexDataInterface::toArray() Returns an array of all property values. Gets an array of plain property values including all not-computed properties. Return value array An array of property values, keyed by property name. Throws \Drupal\Core\TypedData\Exception\MissingDataException If the complex data structure is unset and no property can be created. File core/lib/Drupal/Core/TypedData/ComplexDataInterface.php, line 95 Class ComplexDataInterface Interface for complex data; i.e.

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::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