You are here

public function Feed::setEtag in Zircon Profile 8

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

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

Parameters

string $etag: A string containing the entity tag HTTP response header.

Return value

\Drupal\aggregator\FeedInterface The class instance that this method is called on.

Overrides FeedInterface::setEtag

1 call to Feed::setEtag()
Feed::deleteItems in core/modules/aggregator/src/Entity/Feed.php
Deletes all items from a feed.

File

core/modules/aggregator/src/Entity/Feed.php, line 392
Contains \Drupal\aggregator\Entity\Feed.

Class

Feed
Defines the aggregator feed entity class.

Namespace

Drupal\aggregator\Entity

Code

public function setEtag($etag) {
  $this
    ->set('etag', $etag);
  return $this;
}