function 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;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.