user_user_role_insert

user_user_role_insert(RoleInterface $role) Implements hook_ENTITY_TYPE_insert() for user_role entities. File core/modules/user/user.module, line 982 Enables the user registration and login system. Code function user_user_role_insert(RoleInterface $role) { // Ignore the authenticated and anonymous roles or the role is being synced. if (in_array($role->id(), array(RoleInterface::AUTHENTICATED_ID, RoleInterface::ANONYMOUS_ID)) || $role->isSyncing()) { return; } $add_id = 'user

PasswordInterface

Secure password hashing functions for user authentication. Hierarchy interface \Drupal\Core\Password\PasswordInterface File core/lib/Drupal/Core/Password/PasswordInterface.php, line 8 Namespace Drupal\Core\Password Members Name Modifiers Type Description PasswordInterface::check public function Check whether a plain text password matches a hashed password. PasswordInterface::hash public function Hash a password using a secure hash. PasswordInterface::needsRehas

WriteSafeSessionHandler::read

public WriteSafeSessionHandler::read($session_id) Reads the session data. Parameters string $sessionId Session ID, see http://php.net/function.session-id: Return value string Same session data as passed in write() or empty string when non-existent or on failure Overrides SessionHandlerInterface::read See also http://php.net/sessionhandlerinterface.read File core/lib/Drupal/Core/Session/WriteSafeSessionHandler.php, line 66 Class WriteSafeSessionHandler Wraps another SessionHandlerInterfa

SerializationInterface::encode

public static SerializationInterface::encode($data) Encodes data into the serialization format. Parameters mixed $data: The data to encode. Return value string The encoded data. File core/lib/Drupal/Component/Serialization/SerializationInterface.php, line 19 Class SerializationInterface Defines an interface for serialization formats. Namespace Drupal\Component\Serialization Code public static function encode($data);

NodeViewsData::getViewsData

public NodeViewsData::getViewsData() Returns views data for the entity type. Return value array Views data in the format of hook_views_data(). Overrides EntityViewsData::getViewsData File core/modules/node/src/NodeViewsData.php, line 15 Class NodeViewsData Provides the views data for the node entity type. Namespace Drupal\node Code public function getViewsData() { $data = parent::getViewsData(); $data['node_field_data']['table']['base']['weight'] = -10; $data['node_field_data']

UrlGenerator::__construct

public UrlGenerator::__construct(RouteProviderInterface $provider, OutboundPathProcessorInterface $path_processor, OutboundRouteProcessorInterface $route_processor, RequestStack $request_stack, array $filter_protocols = ['http', 'https']) Constructs a new generator object. Parameters \Drupal\Core\Routing\RouteProviderInterface $provider: The route provider to be searched for routes. \Drupal\Core\PathProcessor\OutboundPathProcessorInterface $path_processor: The path processor to convert the sys

PhpBackend::invalidate

public PhpBackend::invalidate($cid) Marks a cache item as invalid. Invalid items may be returned in later calls to get(), if the $allow_invalid argument is TRUE. Parameters string $cid: The cache ID to invalidate. Overrides CacheBackendInterface::invalidate See also \Drupal\Core\Cache\CacheBackendInterface::delete() \Drupal\Core\Cache\CacheBackendInterface::invalidateMultiple() \Drupal\Core\Cache\CacheBackendInterface::invalidateAll() File core/lib/Drupal/Core/Cache/PhpBackend.php, line 184

EntityViewsDataInterface::getViewsData

public EntityViewsDataInterface::getViewsData() Returns views data for the entity type. Return value array Views data in the format of hook_views_data(). File core/modules/views/src/EntityViewsDataInterface.php, line 18 Class EntityViewsDataInterface Provides an interface to integrate an entity type with views. Namespace Drupal\views Code public function getViewsData();

LocaleDefaultConfigStorage

Provides access to default configuration for locale integration. Allows unified access to default configuration from one of three sources: Required default configuration (config/install/*) Optional default configuration (config/optional/*) Predefined languages mocked as default configuration (list defined in LocaleConfigManagerInterface::getStandardLanguageList()) These sources are considered equal in terms of how locale module interacts with them for translation. Their translatable source st

Image::getToolkit

public Image::getToolkit() Returns the image toolkit used for this image file. Return value \Drupal\Core\ImageToolkit\ImageToolkitInterface The image toolkit. Overrides ImageInterface::getToolkit File core/lib/Drupal/Core/Image/Image.php, line 111 Class Image Defines an image object to represent an image file. Namespace Drupal\Core\Image Code public function getToolkit() { return $this->toolkit; }