LocalStream::$uri

Instance URI (stream). A stream is referenced as "scheme://target". Type: string File core/lib/Drupal/Core/StreamWrapper/LocalStream.php, line 38 Class LocalStream Defines a Drupal stream wrapper base class for local files. Namespace Drupal\Core\StreamWrapper Code protected $uri;

color_requirements

color_requirements($phase) Implements hook_requirements(). File core/modules/color/color.install, line 11 Install, update and uninstall functions for the color module. Code function color_requirements($phase) { $requirements = array(); if ($phase == 'runtime') { // Check for the PHP GD library. if (function_exists('imagegd2')) { $info = gd_info(); $requirements['color_gd'] = array( 'value' => $info['GD Version'], ); // Check for PNG support.

ToStringTrait::__toString

public ToStringTrait::__toString() Implements the magic __toString() method. File core/lib/Drupal/Component/Utility/ToStringTrait.php, line 13 Class ToStringTrait Wraps __toString in a trait to avoid some fatals. Namespace Drupal\Component\Utility Code public function __toString() { try { return (string) $this->render(); } catch (\Exception $e) { // User errors in __toString() methods are considered fatal in the Drupal // error handler. trigger_error(get_class(

ParamConverterInterface::applies

public ParamConverterInterface::applies($definition, $name, Route $route) Determines if the converter applies to a specific route and variable. Parameters mixed $definition: The parameter definition provided in the route options. string $name: The name of the parameter. \Symfony\Component\Routing\Route $route: The route to consider attaching to. Return value bool TRUE if the converter applies to the passed route and parameter, FALSE otherwise. File core/lib/Drupal/Core/ParamConverter/ParamCon

ConfigTranslationEntityListBuilder::sortRowsMultiple

protected ConfigTranslationEntityListBuilder::sortRowsMultiple($a, $b, $keys) Sorts an array by multiple criteria. Parameters array $a: First item for comparison. array $b: Second item for comparison. array $keys: The array keys to sort on. Return value int The comparison result for uasort(). File core/modules/config_translation/src/Controller/ConfigTranslationEntityListBuilder.php, line 114 Class ConfigTranslationEntityListBuilder Defines the configuration translation list builder for e

RfcLoggerTrait::warning

public RfcLoggerTrait::warning($message, array $context = array()) Exceptional occurrences that are not errors. Example: Use of deprecated APIs, poor use of an API, undesirable things that are not necessarily wrong. Parameters string $message: array $context: Return value null Overrides LoggerInterface::warning File core/lib/Drupal/Core/Logger/RfcLoggerTrait.php, line 48 Class RfcLoggerTrait A copy of \Psr\Log\LoggerTrait that uses RFC 5424 compliant log levels. Namespace Drupal\Core\

LanguagesCacheContext::__construct

public LanguagesCacheContext::__construct(LanguageManagerInterface $language_manager) Constructs a new LanguagesCacheContext service. Parameters \Drupal\Core\Language\LanguageManagerInterface $language_manager: The language manager. File core/lib/Drupal/Core/Cache/Context/LanguagesCacheContext.php, line 26 Class LanguagesCacheContext Defines the LanguagesCacheContext service, for "per language" caching. Namespace Drupal\Core\Cache\Context Code public function __construct(LanguageManag

EntityType::getBundleOf

public EntityType::getBundleOf() Gets the entity type for which this entity provides bundles. It can be used by other modules to act accordingly; for example, the Field UI module uses it to add operation links to manage fields and displays. Return value string|null The entity type for which this entity provides bundles, or NULL if does not provide bundles for another entity type. Overrides EntityTypeInterface::getBundleOf File core/lib/Drupal/Core/Entity/EntityType.php, line 674 Class Enti

taxonomy_term_view_multiple

taxonomy_term_view_multiple(array $terms, $view_mode = 'full', $langcode = NULL) Constructs a drupal_render() style array from an array of loaded terms. Parameters array $terms: An array of taxonomy terms as returned by Term::loadMultiple(). string $view_mode: View mode; e.g., 'full', 'teaser', etc. string $langcode: (optional) A language code to use for rendering. Defaults to the global content language of the current request. Return value array An array in the format expected by drupal_rend

UserDataInterface::get

public UserDataInterface::get($module, $uid = NULL, $name = NULL) Returns data stored for a user account. Parameters string $module: The name of the module the data is associated with. int $uid: (optional) The user account ID the data is associated with. string $name: (optional) The name of the data key. Return value mixed|array The requested user account data, depending on the arguments passed: For $module, $name, and $uid, the stored value is returned, or NULL if no value was found. For $mo