You are here

public function LanguageSelectionPageConditionManager::execute in Language Selection Page 8.2

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/LanguageSelectionPageConditionManager.php, line 56

Class

LanguageSelectionPageConditionManager
Manages language selection page condition plugins.

Namespace

Drupal\language_selection_page

Code

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