TableSortExtender::getQueryParameters

protected TableSortExtender::getQueryParameters() Compose a URL query parameter array to append to table sorting requests. Return value A URL query parameter array that consists of all components of the current page request except for those pertaining to table sorting. See also tablesort_get_query_parameters() File core/lib/Drupal/Core/Database/Query/TableSortExtender.php, line 82 Class TableSortExtender Query extender class for tablesort queries. Namespace Drupal\Core\Database\Query

menu_ui_node_predelete

menu_ui_node_predelete(EntityInterface $node) Implements hook_ENTITY_TYPE_predelete() for node entities. File core/modules/menu_ui/menu_ui.module, line 169 Allows administrators to customize the site's navigation menus. Code function menu_ui_node_predelete(EntityInterface $node) { // Delete all MenuLinkContent links that point to this node. /** @var \Drupal\Core\Menu\MenuLinkManagerInterface $menu_link_manager */ $menu_link_manager = \Drupal::service('plugin.manager.menu.link'); $resu

DateFormatter::$units

Contains the different date interval units. This array is keyed by strings representing the unit (e.g. '1 year|@count years') and with the amount of values of the unit in seconds. Type: array File core/lib/Drupal/Core/Datetime/DateFormatter.php, line 68 Class DateFormatter Provides a service to handle various date related functionality. Namespace Drupal\Core\Datetime Code protected $units = array( '1 year|@count years' => 31536000, '1 month|@count months' => 2592000, '1 wee

MenuTreeParameters::setTopLevelOnly

public MenuTreeParameters::setTopLevelOnly() Ensures only the top level of the tree is loaded. Return value $this File core/lib/Drupal/Core/Menu/MenuTreeParameters.php, line 193 Class MenuTreeParameters Provides a value object to model menu tree parameters. Namespace Drupal\Core\Menu Code public function setTopLevelOnly() { $this->setMaxDepth(1); return $this; }

Condition::__toString

public Condition::__toString() Implements PHP magic __toString method to convert the conditions to string. Return value string A string version of the conditions. File core/lib/Drupal/Core/Database/Query/Condition.php, line 257 Class Condition Generic class for a series of conditions in a query. Namespace Drupal\Core\Database\Query Code public function __toString() { // If the caller forgot to call compile() first, refuse to run. if ($this->changed) { return ''; } retur

ResponsiveImageStyle::$label

The responsive image label. Type: string File core/modules/responsive_image/src/Entity/ResponsiveImageStyle.php, line 52 Class ResponsiveImageStyle Defines the responsive image style entity. Namespace Drupal\responsive_image\Entity Code protected $label;

ConfigEntityBase::addDependency

protected ConfigEntityBase::addDependency($type, $name) Overrides \Drupal\Core\Entity\DependencyTrait:addDependency(). Note that this function should only be called from implementations of \Drupal\Core\Config\Entity\ConfigEntityInterface::calculateDependencies(), as dependencies are recalculated during every entity save. See also \Drupal\Core\Config\Entity\ConfigEntityDependency::hasDependency() File core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php, line 454 Class ConfigEntityBase

drupal_check_profile

drupal_check_profile($profile) Checks an installation profile's requirements. Parameters string $profile: Name of installation profile to check. Return value array Array of the installation profile's requirements. File core/includes/install.inc, line 931 API functions for installing modules and themes. Code function drupal_check_profile($profile) { $info = install_profile_info($profile); // Collect requirement testing results. $requirements = array(); // Performs an ExtensionDiscove

RouteSubscriber::alterRoutes

protected RouteSubscriber::alterRoutes(RouteCollection $collection) Alters existing routes for a specific collection. Parameters \Symfony\Component\Routing\RouteCollection $collection: The route collection for adding routes. Overrides RouteSubscriberBase::alterRoutes File core/modules/node/src/Routing/RouteSubscriber.php, line 16 Class RouteSubscriber Listens to the dynamic route events. Namespace Drupal\node\Routing Code protected function alterRoutes(RouteCollection $collection) {

DatabaseStorage::deleteMultiple

public DatabaseStorage::deleteMultiple(array $keys) Deletes multiple items from the key/value store. Parameters array $keys: A list of item names to delete. Overrides KeyValueStoreInterface::deleteMultiple File core/lib/Drupal/Core/KeyValueStore/DatabaseStorage.php, line 149 Class DatabaseStorage Defines a default key/value store implementation. Namespace Drupal\Core\KeyValueStore Code public function deleteMultiple(array $keys) { // Delete in chunks when a large array is passed.