tablesort_get_sort

tablesort_get_sort($headers) Determines the current sort direction. Parameters $headers: An array of column headers in the format described in '#type' => 'table'. Return value The current sort direction ("asc" or "desc"). File core/includes/tablesort.inc, line 132 Functions to aid in the creation of sortable tables. Code function tablesort_get_sort($headers) { $query = \Drupal::request()->query; if ($query->has('sort')) { return (strtolower($query->get('sort')) == 'desc'

UserStorageInterface::deleteRoleReferences

public UserStorageInterface::deleteRoleReferences(array $rids) Delete role references. Parameters array $rids: The list of role IDs being deleted. The storage should remove permission and user references to this role. File core/modules/user/src/UserStorageInterface.php, line 37 Class UserStorageInterface Defines an interface for user entity storage classes. Namespace Drupal\user Code public function deleteRoleReferences(array $rids);

ConfigNamesMapper::getBaseRouteParameters

public ConfigNamesMapper::getBaseRouteParameters() Returns the route parameters for the base route the mapper is attached to. Return value array Overrides ConfigMapperInterface::getBaseRouteParameters File core/modules/config_translation/src/ConfigNamesMapper.php, line 182 Class ConfigNamesMapper Configuration mapper base implementation. Namespace Drupal\config_translation Code public function getBaseRouteParameters() { return array(); }

menu_local_tasks

menu_local_tasks($level = 0) Collects the local tasks (tabs) for the current route. Parameters int $level: The level of tasks you ask for. Primary tasks are 0, secondary are 1. Return value array An array containing tabs: Local tasks for the requested level. route_name: The route name for the current page used to collect the local tasks. Deprecated in Drupal 8.0.0, will be removed before Drupal 9.0.0. See also hook_menu_local_tasks_alter() Related topics Menu system Define the navigat

DateFormatFormBase::exists

public DateFormatFormBase::exists($entity_id, array $element) Checks for an existing date format. Parameters string|int $entity_id: The entity ID. array $element: The form element. Return value bool TRUE if this format already exists, FALSE otherwise. File core/modules/system/src/Form/DateFormatFormBase.php, line 68 Class DateFormatFormBase Provides a base form for date formats. Namespace Drupal\system\Form Code public function exists($entity_id, array $element) { return (bool) $th

LogMessageParserInterface

Defines an interface for parsing log messages and their placeholders. Hierarchy interface \Drupal\Core\Logger\LogMessageParserInterface File core/lib/Drupal/Core/Logger/LogMessageParserInterface.php, line 8 Namespace Drupal\Core\Logger Members Name Modifiers Type Description LogMessageParserInterface::parseMessagePlaceholders public function Parses and transforms message and its placeholders to a common format.

user_picture_enabled

user_picture_enabled() Returns whether this site supports the default user picture feature. This approach preserves compatibility with node/comment templates. Alternate user picture implementations (e.g., Gravatar) should provide their own add/edit/delete forms and populate the 'picture' variable during the preprocess stage. File core/modules/user/user.module, line 130 Enables the user registration and login system. Code function user_picture_enabled() { $field_definitions = \Drupal::entity

FieldItemList::applyDefaultValue

public FieldItemList::applyDefaultValue($notify = TRUE) Applies the default value. Parameters bool $notify: (optional) Whether to notify the parent object of the change. Defaults to TRUE. If a property is updated from a parent object, set it to FALSE to avoid being notified again. Return value \Drupal\Core\TypedData\TypedDataInterface Returns itself to allow for chaining. Overrides TypedData::applyDefaultValue File core/lib/Drupal/Core/Field/FieldItemList.php, line 179 Class FieldItemList

options_field_storage_config_delete

options_field_storage_config_delete(FieldStorageConfigInterface $field_storage) Implements hook_ENTITY_TYPE_delete() for 'field_storage_config'. File core/modules/options/options.module, line 46 Defines selection, check box and radio button widgets for text and numeric fields. Code function options_field_storage_config_delete(FieldStorageConfigInterface $field_storage) { drupal_static_reset('options_allowed_values'); }

LocalTaskManager::processDefinition

public LocalTaskManager::processDefinition(&$definition, $plugin_id) Performs extra processing on plugin definitions. By default we add defaults for the type to the definition. If a type has additional processing logic they can do that by replacing or extending the method. Overrides DefaultPluginManager::processDefinition File core/lib/Drupal/Core/Menu/LocalTaskManager.php, line 159 Class LocalTaskManager Provides the default local task manager using YML as primary definition. Namesp