DataDefinition::setConstraints

public DataDefinition::setConstraints(array $constraints) File core/lib/Drupal/Core/TypedData/DataDefinition.php, line 276 Class DataDefinition A typed data definition class for defining data based on defined data types. Namespace Drupal\Core\TypedData Code public function setConstraints(array $constraints) { $this->definition['constraints'] = $constraints; return $this; }

File

Provides a form element for uploading a file. If you add this element to a form the enctype="multipart/form-data" attribute will automatically be added to the form element. Properties: #multiple: A Boolean indicating whether multiple files may be uploaded. #size: The size of the file input element in characters. Plugin annotation @FormElement("file") Hierarchy class \Drupal\Component\Plugin\PluginBase implements DerivativeInspectionInterface, PluginInspectionInterfaceclass \Drupal\Core\Plu

EntityOperations::$entityTypeManager

The Entity Type Manager service. Type: \Drupal\Core\Entity\EntityTypeManagerInterface File core/modules/content_moderation/src/EntityOperations.php, line 32 Class EntityOperations Defines a class for reacting to entity events. Namespace Drupal\content_moderation Code protected $entityTypeManager;

LanguageManagerInterface::reset

public LanguageManagerInterface::reset($type = NULL) Resets the given language type or all types if none specified. Parameters string|null $type: (optional) The language type to reset as a string, e.g., LanguageInterface::TYPE_INTERFACE, or NULL to reset all language types. Defaults to NULL. Return value \Drupal\Core\Language\LanguageManagerInterface The language manager that has been reset. File core/lib/Drupal/Core/Language/LanguageManagerInterface.php, line 64 Class LanguageManagerInte

db_delete

db_delete($table, array $options = array()) Returns a new DeleteQuery object for the active database. Parameters string $table: The table from which to delete. array $options: An array of options to control how the query operates. Return value \Drupal\Core\Database\Query\Delete A new Delete object for this connection. Deprecated as of Drupal 8.0.x, will be removed in Drupal 9.0.0. Instead, get a database connection injected into your service from the container and call delete() on it. For e

BookNavigationCacheContext::__construct

public BookNavigationCacheContext::__construct(RequestStack $request_stack) Constructs a new BookNavigationCacheContext service. Parameters \Symfony\Component\HttpFoundation\RequestStack $request_stack: The request stack. File core/modules/book/src/Cache/BookNavigationCacheContext.php, line 40 Class BookNavigationCacheContext Defines the book navigation cache context service. Namespace Drupal\book\Cache Code public function __construct(RequestStack $request_stack) { $this->reques

search_theme

search_theme() Implements hook_theme(). File core/modules/search/search.module, line 99 Enables site-wide keyword searching. Code function search_theme() { return array( 'search_result' => array( 'variables' => array('result' => NULL, 'plugin_id' => NULL), 'file' => 'search.pages.inc', ), ); }

ApcuBackendFactory::$backendClass

The APCU backend class to use. Type: string File core/lib/Drupal/Core/Cache/ApcuBackendFactory.php, line 28 Class ApcuBackendFactory Namespace Drupal\Core\Cache Code protected $backendClass;

UrlGenerator::$requestStack

A request stack object. Type: \Symfony\Component\HttpFoundation\RequestStack File core/lib/Drupal/Core/Routing/UrlGenerator.php, line 32 Class UrlGenerator Generates URLs from route names and parameters. Namespace Drupal\Core\Routing Code protected $requestStack;

RedirectDestinationTrait

Wrapper methods for the Redirect Destination. This utility trait should only be used in application-level code, such as classes that would implement ContainerInjectionInterface. Services registered in the Container should not use this trait but inject the appropriate service directly for easier testing. Hierarchy trait \Drupal\Core\Routing\RedirectDestinationTrait File core/lib/Drupal/Core/Routing/RedirectDestinationTrait.php, line 13 Namespace Drupal\Core\Routing Members Name Modif