LinkInterface.php in Colossal Menu 2.x
Same filename and directory in other branches
Namespace
Drupal\colossal_menuFile
src/LinkInterface.phpView source
<?php
namespace Drupal\colossal_menu;
use Drupal\Core\Entity\ContentEntityInterface;
use Drupal\Core\Entity\EntityChangedInterface;
use Drupal\Core\Menu\MenuLinkInterface;
/**
* Provides an interface for defining Link entities.
*
* @ingroup colossal_menu
*/
interface LinkInterface extends MenuLinkInterface, ContentEntityInterface, EntityChangedInterface {
/**
* Sets the parent.
*
* @param int $parent
* The id of the parent.
*
* @return \Drupal\colossal_menu\LinkInterface
* Return this.
*/
public function setParent($parent);
/**
* Sets the weight.
*
* @param int $weight
* The weight.
*
* @return \Drupal\colossal_menu\LinkInterface
* Return this.
*/
public function setWeight($weight);
/**
* Sets the enabled status.
*
* @param bool $enabled
* The enabled status.
*
* @return \Drupal\colossal_menu\LinkInterface
* Return this.
*/
public function setEnabled($enabled);
/**
* Determines if link is external.
*
* @return bool
* Whether the current link is external or not.
*/
public function isExternal();
/**
* Determines if the title should be shown.
*
* @return bool
* Whether the title should be shown or not.
*/
public function showTitle();
}
Interfaces
Name![]() |
Description |
---|---|
LinkInterface | Provides an interface for defining Link entities. |