SortArray

Provides generic array sorting helper methods. Hierarchy class \Drupal\Component\Utility\SortArray Related topics Utility classes and functions Overview of utility classes and functions for developers. File core/lib/Drupal/Component/Utility/SortArray.php, line 10 Namespace Drupal\Component\Utility Members Name Modifiers Type Description SortArray::sortByKeyInt public static function Sorts an integer array item by an arbitrary key. SortArray::sortByKeyString public

RenderCache::__construct

public RenderCache::__construct(RequestStack $request_stack, CacheFactoryInterface $cache_factory, CacheContextsManager $cache_contexts_manager) Constructs a new RenderCache object. Parameters \Symfony\Component\HttpFoundation\RequestStack $request_stack: The request stack. \Drupal\Core\Cache\CacheFactoryInterface $cache_factory: The cache factory. \Drupal\Core\Cache\Context\CacheContextsManager $cache_contexts_manager: The cache contexts manager. File core/lib/Drupal/Core/Render/RenderCache.p

pager_default_initialize

pager_default_initialize($total, $limit, $element = 0) Initializes a pager. This function sets up the necessary global variables so that the render system will correctly process #type 'pager' render arrays to output pagers that correspond to the items being displayed. If the items being displayed result from a database query performed using Drupal's database API, and if you have control over the construction of the database query, you do not need to call this function directly; instead, you can

InfoParser::parse

public InfoParser::parse($filename) Parses Drupal module, theme and profile .info.yml files. Info files are NOT for placing arbitrary theme and module-specific settings. Use Config::get() and Config::set()->save() for that. Info files are formatted as YAML. If the 'version' key is set to 'VERSION' in any info file, then the value will be substituted with the current version of Drupal core. Information stored in all .info.yml files: name: The real name of the module for display purposes. (Re

ViewExecutable::$response

Stores the current response object. Type: \Symfony\Component\HttpFoundation\Response File core/modules/views/src/ViewExecutable.php, line 320 Class ViewExecutable Represents a view as a whole. Namespace Drupal\views Code protected $response = NULL;

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

hook_path_delete

hook_path_delete($path) Respond to a path being deleted. Parameters array $path: The array structure is identical to that of the return value of \Drupal\Core\Path\PathInterface::save(). See also \Drupal\Core\Path\PathInterface::delete() Related topics Hooks Define functions that alter the behavior of Drupal core. File core/modules/path/path.api.php, line 58 Hooks provided by the Path module. Code function hook_path_delete($path) { db_delete('mytable') ->condition('pid', $path['pi

FieldConfigDeleteForm

Provides a form for removing a field from a bundle. Hierarchy class \Drupal\Core\Form\FormBase implements ContainerInjectionInterface, FormInterface uses DependencySerializationTrait, LoggerChannelTrait, LinkGeneratorTrait, RedirectDestinationTrait, UrlGeneratorTrait, StringTranslationTraitclass \Drupal\Core\Entity\EntityForm implements EntityFormInterfaceclass \Drupal\Core\Entity\EntityConfirmFormBase implements ConfirmFormInterfaceclass \Drupal\Core\Entity\EntityDeleteForm uses EntityDeleteFo

MTimeProtectedFastFileStorage::save

public MTimeProtectedFastFileStorage::save($name, $data) Saves PHP code to storage. Parameters string $name: The virtual file name. Can be a relative path. string $code: The PHP code to be saved. Return value bool TRUE if the save succeeded, FALSE if it failed. Overrides FileStorage::save File core/lib/Drupal/Component/PhpStorage/MTimeProtectedFastFileStorage.php, line 63 Class MTimeProtectedFastFileStorage Stores PHP code in files with securely hashed names. Namespace Drupal\Componen

AggregatorController::create

public static AggregatorController::create(ContainerInterface $container) Instantiates a new instance of this class. This is a factory method that returns a new instance of this class. The factory should pass any needed dependencies into the constructor of this class, but not the container itself. Every call to this method must return a new instance of this class; that is, it may not implement a singleton. Parameters \Symfony\Component\DependencyInjection\ContainerInterface $container: The ser