public function LanguageCookieConditionManager::execute in Language Cookie 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/
LanguageCookieConditionManager.php, line 62
Class
- LanguageCookieConditionManager
- Manages language cookie condition plugins.
Namespace
Drupal\language_cookieCode
public function execute(ExecutableInterface $condition) {
return $condition
->evaluate();
}