public function Link::setParent in Colossal Menu 8
Same name and namespace in other branches
- 2.x src/Entity/Link.php \Drupal\colossal_menu\Entity\Link::setParent()
Sets the parent.
Parameters
int $parent: The id of the parent.
Return value
\Drupal\colossal_menu\LinkInterface Return this.
Overrides LinkInterface::setParent
File
- src/
Entity/ Link.php, line 355
Class
- Link
- Defines the Link entity.
Namespace
Drupal\colossal_menu\EntityCode
public function setParent($parent) {
return $this
->set('parent', $parent);
}