UserPermissionsRoleSpecificForm

Provides the user permissions administration form for a specific role. Hierarchy class \Drupal\Core\Form\FormBase implements ContainerInjectionInterface, FormInterface uses DependencySerializationTrait, LoggerChannelTrait, LinkGeneratorTrait, RedirectDestinationTrait, UrlGeneratorTrait, StringTranslationTraitclass \Drupal\user\Form\UserPermissionsFormclass \Drupal\user\Form\UserPermissionsRoleSpecificForm File core/modules/user/src/Form/UserPermissionsRoleSpecificForm.php, line 11 Names

UserPermissionsRoleSpecificForm::$userRole

The specific role for this form. Type: \Drupal\user\RoleInterface File core/modules/user/src/Form/UserPermissionsRoleSpecificForm.php, line 18 Class UserPermissionsRoleSpecificForm Provides the user permissions administration form for a specific role. Namespace Drupal\user\Form Code protected $userRole;

UserPermissionsRoleSpecificForm::buildForm

public UserPermissionsRoleSpecificForm::buildForm(array $form, FormStateInterface $form_state, RoleInterface $user_role = NULL) Parameters string $role_id: The user role ID used for this form. Overrides UserPermissionsForm::buildForm File core/modules/user/src/Form/UserPermissionsRoleSpecificForm.php, line 33 Class UserPermissionsRoleSpecificForm Provides the user permissions administration form for a specific role. Namespace Drupal\user\Form Code public function buildForm(array $form

UserPermissionsRoleSpecificForm::getRoles

protected UserPermissionsRoleSpecificForm::getRoles() Gets the roles to display in this form. Return value \Drupal\user\RoleInterface[] An array of role objects. Overrides UserPermissionsForm::getRoles File core/modules/user/src/Form/UserPermissionsRoleSpecificForm.php, line 23 Class UserPermissionsRoleSpecificForm Provides the user permissions administration form for a specific role. Namespace Drupal\user\Form Code protected function getRoles() { return array($this->userRole->

UserRouteProvider

Provides routes for the user entity. Hierarchy class \Drupal\user\Entity\UserRouteProvider implements EntityRouteProviderInterface File core/modules/user/src/Entity/UserRouteProvider.php, line 13 Namespace Drupal\user\Entity Members Name Modifiers Type Description UserRouteProvider::getRoutes public function Provides routes for entities. Overrides EntityRouteProviderInterface::getRoutes

UserRouteProvider::getRoutes

public UserRouteProvider::getRoutes(EntityTypeInterface $entity_type) Provides routes for entities. Parameters \Drupal\Core\Entity\EntityTypeInterface $entity_type: The entity type Return value \Symfony\Component\Routing\RouteCollection|\Symfony\Component\Routing\Route[] Returns a route collection or an array of routes keyed by name, like route_callbacks inside 'routing.yml' files. Overrides EntityRouteProviderInterface::getRoutes File core/modules/user/src/Entity/UserRouteProvider.php, line

UserSession

An implementation of the user account interface for the global user. @todo: Change all properties to protected. Hierarchy class \Drupal\Core\Session\UserSession implements AccountInterface File core/lib/Drupal/Core/Session/UserSession.php, line 10 Namespace Drupal\Core\Session Members Name Modifiers Type Description AccountInterface::ANONYMOUS_ROLE constant Role ID for anonymous users. AccountInterface::AUTHENTICATED_ROLE constant Role ID for authenticated users.

UserSession::$access

The Unix timestamp when the user last accessed the site. Type: string. File core/lib/Drupal/Core/Session/UserSession.php, line 33 Class UserSession An implementation of the user account interface for the global user. Namespace Drupal\Core\Session Code protected $access;

UserSession::$mail

The email address of this account. Type: string File core/lib/Drupal/Core/Session/UserSession.php, line 61 Class UserSession An implementation of the user account interface for the global user. Namespace Drupal\Core\Session Code protected $mail;

UserSession::$name

The name of this account. Type: string File core/lib/Drupal/Core/Session/UserSession.php, line 40 Class UserSession An implementation of the user account interface for the global user. Namespace Drupal\Core\Session Code public $name = '';