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