public function SimpleMegaMenu::setCreatedTime in Simple Mega Menu 8
Same name and namespace in other branches
- 2.0.x src/Entity/SimpleMegaMenu.php \Drupal\simple_megamenu\Entity\SimpleMegaMenu::setCreatedTime()
Sets the Simple mega menu creation timestamp.
Parameters
int $timestamp: The Simple mega menu creation timestamp.
Return value
\Drupal\simple_megamenu\Entity\SimpleMegaMenuInterface The called Simple mega menu entity.
Overrides SimpleMegaMenuInterface::setCreatedTime
File
- src/
Entity/ SimpleMegaMenu.php, line 147
Class
- SimpleMegaMenu
- Defines the Simple mega menu entity.
Namespace
Drupal\simple_megamenu\EntityCode
public function setCreatedTime($timestamp) {
$this
->set('created', $timestamp);
return $this;
}