public function CustomContextualLink::getAdvancedOption in Custom Contextual Links 8.2
Retrieve the advanced options for the link like query, classes, target.
Parameters
string $option: The option key to retrieve.
Return value
mixed The value of the requested option.
Overrides CustomContextualLinkInterface::getAdvancedOption
File
- src/
Entity/ CustomContextualLink.php, line 106
Class
- CustomContextualLink
- Defines the Custom Contextual Link entity.
Namespace
Drupal\ccl\EntityCode
public function getAdvancedOption($option) {
return isset($this->advanced) && isset($this->advanced[$option]) ? $this->advanced[$option] : NULL;
}