Defines the user specific entity BC decorator.
Expanded class hierarchy of UserBCDecorator
class UserBCDecorator extends EntityBCDecorator implements UserInterface {
/**
* {@inheritdoc}
*/
public function &__get($name) {
// Special handling for roles, as the return value is expected to be an
// array.
if ($name == 'roles') {
$roles = $this->decorated
->getRoles();
return $roles;
}
return parent::__get($name);
}
/**
* {@inheritdoc}
*/
public function getRoles() {
return $this->decorated
->getRoles();
}
/**
* {@inheritdoc}
*/
public function getSecureSessionId() {
return $this->decorated
->getSecureSessionId();
}
/**
* {@inheritdoc}
*/
public function getSessionData() {
return $this->decorated
->getSecureSessionId();
}
/**
* {@inheritdoc}
*/
public function getSessionId() {
return $this->decorated
->getSessionId();
}
/**
* {@inheritdoc}
*/
public function hasRole($rid) {
return $this
->getBCEntity()
->hasRole($rid);
}
/**
* {@inheritdoc}
*/
public function addRole($rid) {
$this
->getBCEntity()
->addRole($rid);
}
/**
* {@inheritdoc}
*/
public function removeRole($rid) {
$this
->getBCEntity()
->removeRole($rid);
}
}
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
EntityBCDecorator:: |
protected | property | The EntityInterface object being decorated. | |
EntityBCDecorator:: |
protected | property | Local cache for field definitions. | |
EntityBCDecorator:: |
public | function |
Forwards the call to the decorated entity. Overrides AccessibleInterface:: |
|
EntityBCDecorator:: |
public | function |
Forwards the call to the decorated entity. Overrides EntityInterface:: |
|
EntityBCDecorator:: |
public | function |
Forwards the call to the decorated entity. Overrides EntityInterface:: |
|
EntityBCDecorator:: |
public | function |
Forwards the call to the decorated entity. Overrides EntityInterface:: |
|
EntityBCDecorator:: |
public | function |
Forwards the call to the decorated entity. Overrides EntityInterface:: |
|
EntityBCDecorator:: |
public | function |
Forwards the call to the decorated entity. Overrides EntityInterface:: |
|
EntityBCDecorator:: |
public | function |
Forwards the call to the decorated entity. Overrides EntityInterface:: |
|
EntityBCDecorator:: |
public | function |
Forwards the call to the decorated entity. Overrides ComplexDataInterface:: |
|
EntityBCDecorator:: |
public | function |
Overrides Entity::getBCEntity(). Overrides EntityInterface:: |
|
EntityBCDecorator:: |
public | function |
Forwards the call to the decorated entity. Overrides TypedDataInterface:: |
|
EntityBCDecorator:: |
public | function |
Forwards the call to the decorated entity. Overrides TypedDataInterface:: |
|
EntityBCDecorator:: |
public | function |
Forwards the call to the decorated entity. Overrides EntityInterface:: |
|
EntityBCDecorator:: |
public | function | Forwards the call to the decorated entity. | |
EntityBCDecorator:: |
public | function |
Forwards the call to the decorated entity. Overrides TypedDataInterface:: |
|
EntityBCDecorator:: |
public | function |
Overrides Entity::getNGEntity(). Overrides EntityInterface:: |
|
EntityBCDecorator:: |
public | function |
Forwards the call to the decorated entity. Overrides TypedDataInterface:: |
|
EntityBCDecorator:: |
public | function |
Forwards the call to the decorated entity. Overrides ComplexDataInterface:: |
|
EntityBCDecorator:: |
public | function |
Forwards the call to the decorated entity. Overrides ComplexDataInterface:: |
|
EntityBCDecorator:: |
public | function |
Forwards the call to the decorated entity. Overrides ComplexDataInterface:: |
|
EntityBCDecorator:: |
public | function |
Forwards the call to the decorated entity. Overrides TypedDataInterface:: |
|
EntityBCDecorator:: |
public | function |
Forwards the call to the decorated entity. Overrides ComplexDataInterface:: |
|
EntityBCDecorator:: |
public | function |
Forwards the call to the decorated entity. Overrides EntityInterface:: |
|
EntityBCDecorator:: |
public | function |
Forwards the call to the decorated entity. Overrides TypedDataInterface:: |
|
EntityBCDecorator:: |
public | function |
Forwards the call to the decorated entity. Overrides TypedDataInterface:: |
|
EntityBCDecorator:: |
public | function |
Forwards the call to the decorated entity. Overrides TranslatableInterface:: |
|
EntityBCDecorator:: |
public | function |
Forwards the call to the decorated entity. Overrides TranslatableInterface:: |
|
EntityBCDecorator:: |
public | function |
Forwards the call to the decorated entity. Overrides TypedDataInterface:: |
|
EntityBCDecorator:: |
public | function |
Forwards the call to the decorated entity. Overrides TypedDataInterface:: |
|
EntityBCDecorator:: |
public | function |
Forwards the call to the decorated entity. Overrides EntityInterface:: |
|
EntityBCDecorator:: |
public | function |
Forwards the call to the decorated entity. Overrides EntityInterface:: |
|
EntityBCDecorator:: |
public | function |
Forwards the call to the decorated entity. Overrides ComplexDataInterface:: |
|
EntityBCDecorator:: |
public | function |
Forwards the call to the decorated entity. Overrides EntityInterface:: |
|
EntityBCDecorator:: |
public | function |
Forwards the call to the decorated entity. Overrides EntityInterface:: |
|
EntityBCDecorator:: |
public | function |
Forwards the call to the decorated entity. Overrides EntityInterface:: |
|
EntityBCDecorator:: |
public | function |
Forwards the call to the decorated entity. Overrides EntityInterface:: |
|
EntityBCDecorator:: |
public | function |
Forwards the call to the decorated entity. Overrides TranslatableInterface:: |
|
EntityBCDecorator:: |
public | function |
Forwards the call to the decorated entity. Overrides ComplexDataInterface:: |
|
EntityBCDecorator:: |
public | function |
Forwards the call to the decorated entity. Overrides EntityInterface:: |
|
EntityBCDecorator:: |
public | function |
Forwards the call to the decorated entity. Overrides ComplexDataInterface:: |
|
EntityBCDecorator:: |
public | function |
Forwards the call to the decorated entity. Overrides TypedDataInterface:: |
|
EntityBCDecorator:: |
public | function |
Forwards the call to the decorated entity. Overrides EntityInterface:: |
|
EntityBCDecorator:: |
public | function |
Forwards the call to the decorated entity. Overrides ComplexDataInterface:: |
|
EntityBCDecorator:: |
public | function |
Forwards the call to the decorated entity. Overrides TypedDataInterface:: |
|
EntityBCDecorator:: |
public | function |
Forwards the call to the decorated entity. Overrides EntityInterface:: |
|
EntityBCDecorator:: |
public | function |
Forwards the call to the decorated entity. Overrides EntityInterface:: |
|
EntityBCDecorator:: |
public | function |
Forwards the call to the decorated entity. Overrides EntityInterface:: |
|
EntityBCDecorator:: |
public | function |
Forwards the call to the decorated entity. Overrides TypedDataInterface:: |
|
EntityBCDecorator:: |
function | Implements the magic method for clone(). | ||
EntityBCDecorator:: |
function | Constructs a Drupal\Core\Entity\EntityCompatibilityDecorator object. | ||
EntityBCDecorator:: |
public | function | Implements the magic method for isset(). | |
EntityBCDecorator:: |
public | function | Implements the magic method for setting object properties. | |
EntityBCDecorator:: |
public | function | Implements the magic method for unset(). | |
UserBCDecorator:: |
public | function |
Add a role to a user. Overrides UserInterface:: |
|
UserBCDecorator:: |
public | function |
Returns a list of roles. Overrides UserInterface:: |
|
UserBCDecorator:: |
public | function |
Returns the secure session ID. Overrides AccountInterface:: |
|
UserBCDecorator:: |
public | function |
Returns the session data. Overrides AccountInterface:: |
|
UserBCDecorator:: |
public | function |
Returns the session ID. Overrides AccountInterface:: |
|
UserBCDecorator:: |
public | function |
Whether a user has a certain role. Overrides UserInterface:: |
|
UserBCDecorator:: |
public | function |
Remove a role from a user. Overrides UserInterface:: |
|
UserBCDecorator:: |
public | function |
Implements the magic method for getting object properties. Overrides EntityBCDecorator:: |