Item::setDescription

public Item::setDescription($description) Sets the body of the feed item. Parameters string $description: The body of the feed item. Return value \Drupal\aggregator\ItemInterface The called feed item entity. Overrides ItemInterface::setDescription File core/modules/aggregator/src/Entity/Item.php, line 181 Class Item Defines the aggregator item entity class. Namespace Drupal\aggregator\Entity Code public function setDescription($description) { return $this->set('description', $de

Item::setAuthor

public Item::setAuthor($author) Sets the author of the feed item. Parameters string $author: The author name of the feed item. Return value \Drupal\aggregator\ItemInterface The called feed item entity. Overrides ItemInterface::setAuthor File core/modules/aggregator/src/Entity/Item.php, line 167 Class Item Defines the aggregator item entity class. Namespace Drupal\aggregator\Entity Code public function setAuthor($author) { return $this->set('author', $author); }

Item::postSave

public Item::postSave(EntityStorageInterface $storage, $update = TRUE) Acts on a saved entity before the insert or update hook is invoked. Used after the entity is saved, but before invoking the insert or update hook. Note that in case of translatable content entities this callback is only fired on their current translation. It is up to the developer to iterate over all translations if needed. Parameters \Drupal\Core\Entity\EntityStorageInterface $storage: The entity storage object. bool $upda

Item::label

public Item::label() Gets the label of the entity. Return value string|null The label of the entity, or NULL if there is no label defined. Overrides ContentEntityBase::label File core/modules/aggregator/src/Entity/Item.php, line 42 Class Item Defines the aggregator item entity class. Namespace Drupal\aggregator\Entity Code public function label() { return $this->get('title')->value; }

Item::getTitle

public Item::getTitle() Returns the title of the feed item. Return value string The title of the feed item. Overrides ItemInterface::getTitle File core/modules/aggregator/src/Entity/Item.php, line 132 Class Item Defines the aggregator item entity class. Namespace Drupal\aggregator\Entity Code public function getTitle() { return $this->get('title')->value; }

Item::getPostedTime

public Item::getPostedTime() Returns the posted date of the feed item, as a Unix timestamp. Return value int The posted date of the feed item, as a Unix timestamp. Overrides ItemInterface::getPostedTime File core/modules/aggregator/src/Entity/Item.php, line 188 Class Item Defines the aggregator item entity class. Namespace Drupal\aggregator\Entity Code public function getPostedTime() { return $this->get('timestamp')->value; }

Item::getLink

public Item::getLink() Returns the link to the feed item. Return value string The link to the feed item. Overrides ItemInterface::getLink File core/modules/aggregator/src/Entity/Item.php, line 146 Class Item Defines the aggregator item entity class. Namespace Drupal\aggregator\Entity Code public function getLink() { return $this->get('link')->value; }

Item::getInfo

public Item::getInfo() Returns the element properties for this element. Return value array An array of element properties. See \Drupal\Core\Render\ElementInfoManagerInterface::getInfo() for documentation of the standard properties of all elements, and the return value format. Overrides ElementInterface::getInfo File core/lib/Drupal/Core/Render/Element/Item.php, line 19 Class Item Provides a display-only form element with an optional title and description. Namespace Drupal\Core\Render\E

Item::getGuid

public Item::getGuid() Returns the unique identifier for the feed item. Return value string The unique identifier for the feed item. Overrides ItemInterface::getGuid File core/modules/aggregator/src/Entity/Item.php, line 202 Class Item Defines the aggregator item entity class. Namespace Drupal\aggregator\Entity Code public function getGuid() { return $this->get('guid')->value; }

Item::getFeedId

public Item::getFeedId() Returns the feed id of aggregator item. Return value int The feed id. Overrides ItemInterface::getFeedId File core/modules/aggregator/src/Entity/Item.php, line 118 Class Item Defines the aggregator item entity class. Namespace Drupal\aggregator\Entity Code public function getFeedId() { return $this->get('fid')->target_id; }