You are here

public function Feed::getEtag in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/aggregator/src/Entity/Feed.php \Drupal\aggregator\Entity\Feed::getEtag()

Returns the entity tag HTTP response header, used for validating cache.

Return value

string The entity tag HTTP response header.

Overrides FeedInterface::getEtag

File

core/modules/aggregator/src/Entity/Feed.php, line 300

Class

Feed
Defines the aggregator feed entity class.

Namespace

Drupal\aggregator\Entity

Code

public function getEtag() {
  return $this
    ->get('etag')->value;
}