public function CustomContextualLink::getLinkType in Custom Contextual Links 8.2
Retrieve the link type of the custom contextual link.
Return value
string The link type of this entity.
Overrides CustomContextualLinkInterface::getLinkType
File
- src/
Entity/ CustomContextualLink.php, line 120
Class
- CustomContextualLink
- Defines the Custom Contextual Link entity.
Namespace
Drupal\ccl\EntityCode
public function getLinkType() {
return isset($this->type) ? $this->type : 'node';
}