class CacheFragment in RESTful 7.2
Hierarchy
- class \Drupal\restful\RenderCache\Entity\CacheFragment extends \Drupal\restful\RenderCache\Entity\Entity
Expanded class hierarchy of CacheFragment
1 file declares its use of CacheFragment
- Formatter.php in src/
Plugin/ formatter/ Formatter.php - Contains \Drupal\restful\Plugin\formatter\Formatter
File
- src/
RenderCache/ Entity/ CacheFragment.php, line 10 - Contains \Drupal\restful\RenderCache\Entity\CacheFragment.
Namespace
Drupal\restful\RenderCache\EntityView source
class CacheFragment extends \Entity {
/**
* The identifier hash for the tag.
*
* @var string
*/
public $hash;
/**
* Tag type.
*
* @var string
*/
public $type;
/**
* Tag value.
*
* @var string
*/
public $value;
/**
* The hash to be used as the cache ID.
*
* @return string
* The hash.
*/
public function getHash() {
return $this->hash;
}
/**
* The hash to be used as the cache ID.
*
* @param string $hash
* The hash.
*/
public function setHash($hash) {
$this->hash = $hash;
}
/**
* Get the type.
*
* @return string
* The type.
*/
public function getType() {
return $this->type;
}
/**
* Set the type.
*
* @param string $type
* The type.
*/
public function setType($type) {
$this->type = $type;
}
/**
* Get the value.
*
* @return string
* The value.
*/
public function getValue() {
return $this->value;
}
/**
* Set the value.
*
* @param string $value
* The value.
*/
public function setValue($value) {
$this->value = $value;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
CacheFragment:: |
public | property | The identifier hash for the tag. | |
CacheFragment:: |
public | property | Tag type. | |
CacheFragment:: |
public | property | Tag value. | |
CacheFragment:: |
public | function | The hash to be used as the cache ID. | |
CacheFragment:: |
public | function | Get the type. | |
CacheFragment:: |
public | function | Get the value. | |
CacheFragment:: |
public | function | The hash to be used as the cache ID. | |
CacheFragment:: |
public | function | Set the type. | |
CacheFragment:: |
public | function | Set the value. |