DiffFormatter::addedLine

protected DiffFormatter::addedLine($line) Creates an added line. Parameters string $line: An HTML-escaped line. Return value array An array representing a table row. File core/lib/Drupal/Core/Diff/DiffFormatter.php, line 98 Class DiffFormatter Diff formatter which uses returns output that can be rendered to a table. Namespace Drupal\Core\Diff Code protected function addedLine($line) { return array( array( 'data' => '+', 'class' => 'diff-marker', ), arr

FieldConfigBase::$label

The human-readable label for the field. This will be used as the title of Form API elements for the field in entity edit forms, or as the label for the field values in displayed entities. If not specified, this defaults to the field_name (mostly useful for fields created in tests). Type: string File core/lib/Drupal/Core/Field/FieldConfigBase.php, line 71 Class FieldConfigBase Base class for configurable field definitions. Namespace Drupal\Core\Field Code protected $label;

ImageToolkitBase::$configFactory

The config factory. Type: \Drupal\Core\Config\ConfigFactoryInterface File core/lib/Drupal/Core/ImageToolkit/ImageToolkitBase.php, line 26 Class ImageToolkitBase Provides a base class for image toolkit plugins. Namespace Drupal\Core\ImageToolkit Code protected $configFactory;

ConfigImporter::setProcessedExtension

protected ConfigImporter::setProcessedExtension($type, $op, $name) Sets an extension change as processed. Parameters string $type: The type of extension, either 'theme' or 'module'. string $op: The change operation performed, either install or uninstall. string $name: The name of the extension processed. File core/lib/Drupal/Core/Config/ConfigImporter.php, line 350 Class ConfigImporter Defines a configuration importer. Namespace Drupal\Core\Config Code protected function setProcessedE

DrupalKernel::validateHostnameLength

protected static DrupalKernel::validateHostnameLength($host) Validates a hostname length. Parameters string $host: A hostname. Return value bool TRUE if the length is appropriate, or FALSE otherwise. File core/lib/Drupal/Core/DrupalKernel.php, line 1435 Class DrupalKernel The DrupalKernel class is the core of Drupal itself. Namespace Drupal\Core Code protected static function validateHostnameLength($host) { // Limit the length of the host name to 1000 bytes to prevent DoS attacks

entity_load_multiple_by_properties

entity_load_multiple_by_properties($entity_type, array $values) Load entities by their property values. \Drupal::entityTypeManager() ->getStorage($entity_type) ->loadByProperties($values); Parameters string $entity_type: The entity type to load, e.g. node or user. array $values: An associative array where the keys are the property names and the values are the values those properties must have. Return value array An array of entity objects indexed by their IDs. Returns an empty arra

RouteCompiler::REGEX_DELIMITER

Utility constant to use for regular expressions against the path. Overrides RouteCompiler::REGEX_DELIMITER File core/lib/Drupal/Core/Routing/RouteCompiler.php, line 17 Class RouteCompiler Compiler to generate derived information from a Route necessary for matching. Namespace Drupal\Core\Routing Code const REGEX_DELIMITER = '#';

TAXONOMY_HIERARCHY_SINGLE

Denotes that one or more terms in the vocabulary has a single parent. Deprecated in Drupal 8.2.x and will be removed before 9.0.0. Use \Drupal\taxonomy\VocabularyInterface::HIERARCHY_SINGLE instead. File core/modules/taxonomy/taxonomy.module, line 34 Enables the organization of content into categories. Code const TAXONOMY_HIERARCHY_SINGLE = 1;

Input validation

Functions to validate user input. File core/includes/common.inc, line 162 Common functions that many Drupal modules will need to reference. Functions Name Location Description valid_email_address Deprecated core/includes/common.inc Verifies the syntax of the given email address.

RowCountException::__construct

public RowCountException::__construct($message = NULL, $code = 0, \Exception $previous = NULL) File core/lib/Drupal/Core/Database/RowCountException.php, line 10 Class RowCountException Exception thrown if a SELECT query trying to execute rowCount() on result. Namespace Drupal\Core\Database Code public function __construct($message = NULL, $code = 0, \Exception $previous = NULL) { if (!isset($message)) { $message = "rowCount() is supported for DELETE, INSERT, or UPDATE statements