You are here

public function CustomContextualLink::getLinkOption in Custom Contextual Links 8.2

Retrieve the link type specific options.

Parameters

string $option: The option key to retrieve.

Return value

mixed The value of the requested option.

Overrides CustomContextualLinkInterface::getLinkOption

File

src/Entity/CustomContextualLink.php, line 113

Class

CustomContextualLink
Defines the Custom Contextual Link entity.

Namespace

Drupal\ccl\Entity

Code

public function getLinkOption($option) {
  return isset($this->options) && isset($this->options[$option]) ? $this->options[$option] : NULL;
}