DateTimePlus::arrayToISO

public static DateTimePlus::arrayToISO($array, $force_valid_date = FALSE) Creates an ISO date from an array of values. Parameters array $array: An array of date values keyed by date part. bool $force_valid_date: (optional) Whether to force a full date by filling in missing values. Defaults to FALSE. Return value string The date as an ISO string. File core/lib/Drupal/Component/Datetime/DateTimePlus.php, line 490 Class DateTimePlus Wraps DateTime(). Namespace Drupal\Component\Datetime

ConditionManager::execute

public ConditionManager::execute(ExecutableInterface $condition) Executes an executable plugin. Parameters \Drupal\Core\Executable\ExecutableInterface $plugin: An executable plugin instance managed by the implementing manager. Return value mixed The returned data varies by plugin implementation, e.g. conditions return the boolean evaluation result. Throws \Drupal\Core\Executable\ExecutableException If the plugin could not be executed. Overrides ExecutableManagerInterface::execute File core/l

UpdateManager::__construct

public UpdateManager::__construct(ConfigFactoryInterface $config_factory, ModuleHandlerInterface $module_handler, UpdateProcessorInterface $update_processor, TranslationInterface $translation, KeyValueFactoryInterface $key_value_expirable_factory, ThemeHandlerInterface $theme_handler) Constructs a UpdateManager. Parameters \Drupal\Core\Config\ConfigFactoryInterface $config_factory: The config factory. \Drupal\Core\Extension\ModuleHandlerInterface $module_handler: The Module Handler service \Dr

NestedArray::filter

public static NestedArray::filter(array $array, callable $callable = NULL) Filters a nested array recursively. Parameters array $array: The filtered nested array. callable|null $callable: The callable to apply for filtering. Return value array The filtered array. File core/lib/Drupal/Component/Utility/NestedArray.php, line 358 Class NestedArray Provides helpers to perform operations on nested arrays and array keys of variable depth. Namespace Drupal\Component\Utility Code public stat

OffCanvasRender

Default main content renderer for offcanvas dialog requests. Hierarchy class \Drupal\Core\Render\MainContent\DialogRenderer implements MainContentRendererInterfaceclass \Drupal\outside_in\Render\MainContent\OffCanvasRender File core/modules/outside_in/src/Render/MainContent/OffCanvasRender.php, line 16 Namespace Drupal\outside_in\Render\MainContent Members Name Modifiers Type Description DialogRenderer::$titleResolver protected property The title resolver. DialogRende

ModuleHandler::$loadedFiles

List of loaded files. An associative array whose keys are file paths of loaded files, relative to the application's root directory. Type: array File core/lib/Drupal/Core/Extension/ModuleHandler.php, line 21 Class ModuleHandler Class that manages modules in a Drupal installation. Namespace Drupal\Core\Extension Code protected $loadedFiles;

EntityFieldManager::buildBundleFieldDefinitions

protected EntityFieldManager::buildBundleFieldDefinitions($entity_type_id, $bundle, array $base_field_definitions) Builds field definitions for a specific bundle within an entity type. Parameters string $entity_type_id: The entity type ID. Only entity types that implement \Drupal\Core\Entity\FieldableEntityInterface are supported. string $bundle: The bundle. \Drupal\Core\Field\FieldDefinitionInterface[] $base_field_definitions: The list of base field definitions. Return value \Drupal\Core\Fie

MenuTreeStorage::purgeMultiple

protected MenuTreeStorage::purgeMultiple(array $ids) Purges multiple menu links that no longer exist. Parameters array $ids: An array of menu link IDs. File core/lib/Drupal/Core/Menu/MenuTreeStorage.php, line 213 Class MenuTreeStorage Provides a menu tree storage using the database. Namespace Drupal\Core\Menu Code protected function purgeMultiple(array $ids) { $loaded = $this->loadFullMultiple($ids); foreach ($loaded as $id => $link) { if ($link['has_children']) {

Cache::buildTags

public static Cache::buildTags($prefix, array $suffixes, $glue = ':') Build an array of cache tags from a given prefix and an array of suffixes. Each suffix will be converted to a cache tag by appending it to the prefix, with a colon between them. Parameters string $prefix: A prefix string. array $suffixes: An array of suffixes. Will be cast to strings. string $glue: A string to be used as glue for concatenation. Defaults to a colon. Return value string[] An array of cache tags. File core/lib

Diff::orig

public Diff::orig() Gets the original set of lines. This reconstructs the $from_lines parameter passed to the constructor. Return value array The original sequence of strings. File core/lib/Drupal/Component/Diff/Diff.php, line 98 Class Diff Class representing a 'diff' between two sequences of strings. @todo document @subpackage DifferenceEngine Namespace Drupal\Component\Diff Code public function orig() { $lines = array(); foreach ($this->edits as $edit) { if ($edit->or