DataReferenceDefinition::createFromDataType

public static DataReferenceDefinition::createFromDataType($data_type) Creates a new data definition object. This method is typically used by \Drupal\Core\TypedData\TypedDataManager::createDataDefinition() to build a definition object for an arbitrary data type. When the definition class is known, it is recommended to directly use the static create() method on that class instead; e.g.: $map_definition = \Drupal\Core\TypedData\MapDataDefinition::create(); Parameters string $data_type: The dat

DrupalTranslator::getLocale

public DrupalTranslator::getLocale() Returns the current locale. Return value string The locale Overrides TranslatorInterface::getLocale File core/lib/Drupal/Core/Validation/DrupalTranslator.php, line 65 Class DrupalTranslator Translates strings using Drupal's translation system. Namespace Drupal\Core\Validation Code public function getLocale() { return $this->locale ? $this->locale : \Drupal::languageManager()->getCurrentLanguage()->getId(); }

ViewExecutable::getHandlers

public ViewExecutable::getHandlers($type, $display_id = NULL) Gets an array of handler instances for the current display. Parameters string $type: The type of handlers to retrieve. string $display_id: (optional) A specific display machine name to use. If NULL, the current display will be used. Return value array An array of handler instances of a given type for this display. File core/modules/views/src/ViewExecutable.php, line 2237 Class ViewExecutable Represents a view as a whole. Nam

RelationLinkManager::$moduleHandler

Module handler service. Type: \Drupal\Core\Extension\ModuleHandlerInterface File core/modules/rest/src/LinkManager/RelationLinkManager.php, line 32 Class RelationLinkManager Namespace Drupal\rest\LinkManager Code protected $moduleHandler;

locale_is_translatable

locale_is_translatable($langcode) Checks whether $langcode is a language supported as a locale target. Parameters string $langcode: The language code. Return value bool Whether $langcode can be translated to in locale. File core/modules/locale/locale.module, line 743 Enables the translation of the user interface to languages other than English. Code function locale_is_translatable($langcode) { return $langcode != 'en' || \Drupal::config('locale.settings')->get('translate_english'); }

LocalTaskInterface::getWeight

public LocalTaskInterface::getWeight() Returns the weight of the local task. Return value int|null The weight of the task or NULL. File core/lib/Drupal/Core/Menu/LocalTaskInterface.php, line 54 Class LocalTaskInterface Defines an interface for menu local tasks. Namespace Drupal\Core\Menu Code public function getWeight();

ImportableEntityStorageInterface::importDelete

public ImportableEntityStorageInterface::importDelete($name, Config $new_config, Config $old_config) Delete entities upon synchronizing configuration changes. Parameters string $name: The name of the configuration object. \Drupal\Core\Config\Config $new_config: A configuration object containing the new configuration data. \Drupal\Core\Config\Config $old_config: A configuration object containing the old configuration data. File core/lib/Drupal/Core/Config/Entity/ImportableEntityStorageInterface

PhpStorageInterface::garbageCollection

public PhpStorageInterface::garbageCollection() Performs garbage collection on the storage. The storage may choose to delete expired or invalidated items. File core/lib/Drupal/Component/PhpStorage/PhpStorageInterface.php, line 102 Class PhpStorageInterface Stores and loads PHP code. Namespace Drupal\Component\PhpStorage Code public function garbageCollection();

ServiceProviderBase::register

public ServiceProviderBase::register(ContainerBuilder $container) Registers services to the container. Parameters ContainerBuilder $container: The ContainerBuilder to register services to. Overrides ServiceProviderInterface::register File core/lib/Drupal/Core/DependencyInjection/ServiceProviderBase.php, line 15 Class ServiceProviderBase Base service provider implementation. Namespace Drupal\Core\DependencyInjection Code public function register(ContainerBuilder $container) { }

UserController::resetPassLogin

public UserController::resetPassLogin($uid, $timestamp, $hash) Validates user, hash, and timestamp; logs the user in if correct. Parameters int $uid: User ID of the user requesting reset. int $timestamp: The current timestamp. string $hash: Login link hash. Return value \Symfony\Component\HttpFoundation\RedirectResponse Returns a redirect to the user edit form if the information is correct. If the information is incorrect redirects to 'user.pass' route with a message for the user. Throws \Sy