public function ArrayWrapper::get in RESTful 7.2
Gets a field from the data array.
Parameters
string $key: The key to get.
Return value
mixed The value.
Overrides ArrayWrapperInterface::get
File
- src/
Plugin/ resource/ DataInterpreter/ ArrayWrapper.php, line 32 - Contains \Drupal\restful\Plugin\resource\DataInterpreter\ArrayWrapper.
Class
Namespace
Drupal\restful\Plugin\resource\DataInterpreterCode
public function get($key) {
return isset($this->data[$key]) ? $this->data[$key] : NULL;
}