You are here

public function NodeTitle::getFailoverPluginId in Freelinking 4.0.x

Same name and namespace in other branches
  1. 8.3 src/Plugin/freelinking/NodeTitle.php \Drupal\freelinking\Plugin\freelinking\NodeTitle::getFailoverPluginId()

Get the failover plugin ID (if applicable).

Return value

string The plugin ID of the failover plugin or an empty string if no plugin available.

Overrides FreelinkingPluginBase::getFailoverPluginId

File

src/Plugin/freelinking/NodeTitle.php, line 246

Class

NodeTitle
Node Title freelinking plugin.

Namespace

Drupal\freelinking\Plugin\freelinking

Code

public function getFailoverPluginId() {
  $non_plugins = [
    '_none',
    '',
    'error',
    'showtext',
  ];
  if (!in_array($this->configuration['settings']['failover'], $non_plugins)) {
    return $this->configuration['settings']['failover'];
  }
  return FALSE;
}