abstract class DataInterpreterBase in RESTful 7.2
Hierarchy
- class \Drupal\restful\Plugin\resource\DataInterpreter\DataInterpreterBase implements DataInterpreterInterface
Expanded class hierarchy of DataInterpreterBase
1 file declares its use of DataInterpreterBase
- DataInterpreterVariable.php in modules/
restful_example/ src/ Plugin/ resource/ variables/ DataInterpreterVariable.php - Contains \Drupal\restful_example\Plugin\resource\variables\DataInterpreterVariable.
File
- src/
Plugin/ resource/ DataInterpreter/ DataInterpreterBase.php, line 10 - Contains \Drupal\restful\Plugin\resource\DataInterpreter\DataInterpreter.
Namespace
Drupal\restful\Plugin\resource\DataInterpreterView source
abstract class DataInterpreterBase implements DataInterpreterInterface {
/**
* The account.
*
* @var object
*/
protected $account;
/**
* The wrapper.
*
* @var mixed
*/
protected $wrapper;
/**
* Constructs a DataInterpreter object.
*
* @param object $account
* The fully loaded object.
* @param mixed $wrapper
* The container wrapper.
*/
public function __construct($account, $wrapper) {
$this->account = $account;
$this->wrapper = $wrapper;
}
/**
* {@inheritdoc}
*/
public function getAccount() {
return $this->account;
}
/**
* {@inheritdoc}
*/
public function getWrapper() {
return $this->wrapper;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
DataInterpreterBase:: |
protected | property | The account. | |
DataInterpreterBase:: |
protected | property | The wrapper. | |
DataInterpreterBase:: |
public | function |
Get the account. Overrides DataInterpreterInterface:: |
|
DataInterpreterBase:: |
public | function |
Get the wrapper. Overrides DataInterpreterInterface:: |
1 |
DataInterpreterBase:: |
public | function | Constructs a DataInterpreter object. |