public function RecentlyRead::setName in Recently Read 8
Sets the Recently read name.
Parameters
string $name: The Recently read name.
Return value
\Drupal\recently_read\Entity\RecentlyReadInterface The called Recently read entity.
Overrides RecentlyReadInterface::setName
File
- src/
Entity/ RecentlyRead.php, line 74
Class
- RecentlyRead
- Defines the Recently read entity.
Namespace
Drupal\recently_read\EntityCode
public function setName($name) {
$this
->set('name', $name);
return $this;
}