You are here

public function AdministrationLanguageNegotiationConditionManager::execute in Administration Language Negotiation 8

Executes an executable plugin.

Parameters

\Drupal\Core\Executable\ExecutableInterface $plugin: An executable plugin instance managed by the implementing manager.

Return value

mixed The returned data varies by plugin implementation, e.g. conditions return the boolean evaluation result.

Throws

\Drupal\Core\Executable\ExecutableException If the plugin could not be executed.

Overrides ExecutableManagerInterface::execute

File

src/AdministrationLanguageNegotiationConditionManager.php, line 67

Class

AdministrationLanguageNegotiationConditionManager
Manages administration language negotiation condition plugins.

Namespace

Drupal\administration_language_negotiation

Code

public function execute(ExecutableInterface $condition) {
  return $condition
    ->evaluate();
}